Function at 0x406130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec886
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x615cbc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb4], ecx
mov eax, dword [0x618174]
and eax, 1
jne 0x40618f
mov ecx, dword [0x618174]
or ecx, 1
mov dword [0x618174], ecx
mov dword [ebp - 4], 0
call fcn.00408710
mov dword [0x618170], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [0x618170], 0
jne 0x4061a0
or eax, 0xffffffff
jmp 0x406c55
cmp dword [ebp + 8], 0
jne 0x4061ae
or eax, 0xffffffff
jmp 0x406c55
push 0x5fa8cc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4061d1
or eax, 0xffffffff
jmp 0x406c55
mov eax, dword [ebp - 0x18]
push eax
push 1
push 4
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x406200
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
cmp dword [ebp - 0x14], 0x434e4b57
jne 0x406215
mov dword [0x618160], 0
jmp 0x406294
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 3
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [ebp - 0x25], al
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x2c]
mov al, byte [ebp - 0x25]
mov byte [edx], al
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [ebp - 0x25], al
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ebp - 0x25]
mov byte [ecx], dl
cmp dword [ebp - 0x14], 0x434e4b57
jne 0x40627f
mov dword [0x618160], 1
jmp 0x406294
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
mov ecx, dword [ebp - 0x18]
push ecx
push 1
push 4
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x4062c3
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
cmp dword [0x618160], 0
je 0x406321
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
add edx, 3
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [ebp - 0x31], cl
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x31]
mov byte [eax], cl
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [ebp - 0x31], cl
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x38]
mov al, byte [ebp - 0x31]
mov byte [edx], al
cmp dword [ebp - 0x20], 1
je 0x40633c
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
mov edx, dword [ebp - 0x18]
push edx
push 1
push 4
mov eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4063b9
mov ecx, dword [ebp - 0x18]
push ecx
push 1
push 4
mov edx, dword [ebp - 0xb4]
add edx, 8
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4063b9
mov eax, dword [ebp - 0x18]
push eax
push 1
push 4
mov ecx, dword [ebp - 0xb4]
add ecx, 0x10
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4063b9
mov edx, dword [ebp - 0x18]
push edx
push 1
push 4
mov eax, dword [ebp - 0xb4]
add eax, 0x18
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x4063d9
mov ecx, dword [ebp - 0xb4]
call fcn.00401980
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
cmp dword [0x618160], 0
je 0x40654f
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
add eax, 3
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dl, byte [ecx]
mov byte [ebp - 0x3d], dl
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x3c]
sub eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x44]
mov dl, byte [ebp - 0x3d]
mov byte [ecx], dl
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x3c]
mov dl, byte [ecx]
mov byte [ebp - 0x3d], dl
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x44]
mov cl, byte [ebp - 0x3d]
mov byte [eax], cl
mov edx, dword [ebp - 0xb4]
add edx, 8
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
add eax, 3
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dl, byte [ecx]
mov byte [ebp - 0x49], dl
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x48]
sub eax, 1
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x50]
mov dl, byte [ebp - 0x49]
mov byte [ecx], dl
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x48]
mov dl, byte [ecx]
mov byte [ebp - 0x49], dl
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x50]
mov cl, byte [ebp - 0x49]
mov byte [eax], cl
mov edx, dword [ebp - 0xb4]
add edx, 0x10
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
add eax, 3
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dl, byte [ecx]
mov byte [ebp - 0x55], dl
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x5c]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x54]
sub eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x5c]
mov dl, byte [ebp - 0x55]
mov byte [ecx], dl
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x54]
mov dl, byte [ecx]
mov byte [ebp - 0x55], dl
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x5c]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x5c]
mov cl, byte [ebp - 0x55]
mov byte [eax], cl
mov edx, dword [ebp - 0xb4]
add edx, 0x18
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
add eax, 3
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dl, byte [ecx]
mov byte [ebp - 0x61], dl
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x68]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x60]
sub eax, 1
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x68]
mov dl, byte [ebp - 0x61]
mov byte [ecx], dl
mov eax, dword [ebp - 0x68]
add eax, 1
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x60]
mov dl, byte [ecx]
mov byte [ebp - 0x61], dl
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x68]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x68]
mov cl, byte [ebp - 0x61]
mov byte [eax], cl
mov edx, dword [ebp - 0xb4]
cmp dword [edx], 2
jl 0x40657e
mov eax, dword [ebp - 0xb4]
cmp dword [eax + 8], 1
jl 0x40657e
mov ecx, dword [ebp - 0xb4]
cmp dword [ecx + 0x10], 1
jl 0x40657e
mov edx, dword [ebp - 0xb4]
cmp dword [edx + 0x18], 1
jge 0x40659e
mov ecx, dword [ebp - 0xb4]
call fcn.00401980
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x80], edx
xor ecx, ecx
mov eax, dword [ebp - 0x80]
mov edx, 0x40
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x88], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x88], 0
je 0x406623
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x80]
mov dword [ecx], edx
push fcn.00401120
push 0x4087e0
mov eax, dword [ebp - 0x80]
push eax
push 0x40
mov ecx, dword [ebp - 0x88]
add ecx, 4
push ecx
call fcn.0042431b
mov edx, dword [ebp - 0x88]
add edx, 4
mov dword [ebp - 0xb8], edx
jmp 0x40662d
mov dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0x84]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0xb4]
cmp dword [eax + 0x1c], 0
jne 0x40667b
mov ecx, dword [ebp - 0xb4]
call fcn.00401980
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
mov edx, dword [ebp - 0xb4]
mov dword [edx + 0x20], 0x3b9ac9ff
mov eax, dword [ebp - 0xb4]
mov dword [eax + 0x24], 0xc4653601
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], 0
jmp 0x4066bc
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x40
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx + 0x18]
jge 0x40673e
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.004051a0
test eax, eax
je 0x4066fa
mov ecx, dword [ebp - 0xb4]
call fcn.00401980
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
mov ecx, dword [ebp - 0x1c]
call fcn.00401270
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [eax + 0x20]
jge 0x40671f
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x6c]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ecx + 0x24]
jle 0x406739
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x6c]
mov dword [eax + 0x24], ecx
jmp 0x4066aa
mov edx, dword [ebp - 0xb4]
cmp dword [edx + 0x20], 0
jl 0x40675e
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb4]
mov edx, dword [eax + 0x24]
cmp edx, dword [ecx + 0x20]
jge 0x40677e
mov ecx, dword [ebp - 0xb4]
call fcn.00401980
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ecx + 0x24]
add edx, 1
mov eax, dword [ebp - 0xb4]
mov dword [eax + 0x28], edx
xor ecx, ecx
mov edx, dword [ebp - 0xb4]
mov eax, dword [edx + 0x28]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x8c]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0xb4]
cmp dword [edx + 0x2c], 0
jne 0x4067f6
mov ecx, dword [ebp - 0xb4]
call fcn.00401980
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
mov dword [ebp - 0x70], 0
jmp 0x406808
mov ecx, dword [ebp - 0x70]
add ecx, 1
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x70]
cmp eax, dword [edx + 0x24]
jg 0x40682b
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ecx + 0x2c]
mov eax, dword [ebp - 0x70]
mov dword [edx + eax*4], 0xffffffff
jmp 0x4067ff
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], 0
jmp 0x406852
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x40
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx + 0x18]
jge 0x406879
mov ecx, dword [ebp - 0x1c]
call fcn.00401270
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ecx + 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4], ecx
jmp 0x406840
mov edx, dword [ebp - 0xb4]
mov eax, dword [edx]
mov dword [ebp - 0x90], eax
xor ecx, ecx
mov eax, dword [ebp - 0x90]
mov edx, 0x20
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x98], 0
je 0x406909
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0x90]
mov dword [ecx], edx
push fcn.004011a0
push 0x4089e0
mov eax, dword [ebp - 0x90]
push eax
push 0x20
mov ecx, dword [ebp - 0x98]
add ecx, 4
push ecx
call fcn.0042431b
mov edx, dword [ebp - 0x98]
add edx, 4
mov dword [ebp - 0xbc], edx
jmp 0x406913
mov dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0x94]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0xb4]
cmp dword [eax + 4], 0
jne 0x406961
mov ecx, dword [ebp - 0xb4]
call fcn.00401980
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
mov dword [ebp - 0x74], 0
jmp 0x406973
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x74]
cmp ecx, dword [eax]
jge 0x4069be
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x74]
shl ecx, 5
mov eax, dword [ebp - 0xb4]
add ecx, dword [eax + 4]
call fcn.00405640
test eax, eax
je 0x4069bc
mov ecx, dword [ebp - 0xb4]
call fcn.00401980
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
jmp 0x40696a
mov edx, dword [ebp - 0xb4]
mov eax, dword [edx + 8]
mov dword [ebp - 0x9c], eax
xor ecx, ecx
mov eax, dword [ebp - 0x9c]
mov edx, 0x14
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xa4], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0xa4], 0
je 0x406a4f
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x9c]
mov dword [ecx], edx
push fcn.004011e0
push 0x408ab0
mov eax, dword [ebp - 0x9c]
push eax
push 0x14
mov ecx, dword [ebp - 0xa4]
add ecx, 4
push ecx
call fcn.0042431b
mov edx, dword [ebp - 0xa4]
add edx, 4
mov dword [ebp - 0xc0], edx
jmp 0x406a59
mov dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xa0]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0xb4]
cmp dword [eax + 0xc], 0
jne 0x406aa7
mov ecx, dword [ebp - 0xb4]
call fcn.00401980
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
mov dword [ebp - 0x78], 0
jmp 0x406ab9
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x78]
cmp ecx, dword [eax + 8]
jge 0x406b05
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x78]
imul ecx, ecx, 0x14
mov eax, dword [ebp - 0xb4]
add ecx, dword [eax + 0xc]
call fcn.00405b20
test eax, eax
je 0x406b03
mov ecx, dword [ebp - 0xb4]
call fcn.00401980
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
jmp 0x406ab0
mov edx, dword [ebp - 0xb4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xa8], eax
xor ecx, ecx
mov eax, dword [ebp - 0xa8]
mov edx, 0x24
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xb0], eax
mov dword [ebp - 4], 4
cmp dword [ebp - 0xb0], 0
je 0x406b96
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xa8]
mov dword [ecx], edx
push fcn.00401160
push 0x408910
mov eax, dword [ebp - 0xa8]
push eax
push 0x24
mov ecx, dword [ebp - 0xb0]
add ecx, 4
push ecx
call fcn.0042431b
mov edx, dword [ebp - 0xb0]
add edx, 4
mov dword [ebp - 0xc4], edx
jmp 0x406ba0
mov dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xac], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xac]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0xb4]
cmp dword [eax + 0x14], 0
jne 0x406beb
mov ecx, dword [ebp - 0xb4]
call fcn.00401980
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
mov dword [ebp - 0x7c], 0
jmp 0x406bfd
mov edx, dword [ebp - 0x7c]
add edx, 1
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [eax + 0x10]
jge 0x406c46
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x7c]
imul ecx, ecx, 0x24
mov eax, dword [ebp - 0xb4]
add ecx, dword [eax + 0x14]
call fcn.00405d40
test eax, eax
je 0x406c44
mov ecx, dword [ebp - 0xb4]
call fcn.00401980
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x406c55
jmp 0x406bf4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4