Function at 0x42e9f8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff04
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42f560
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x79], 0
mov word [ebp - 0x76], 0x27
mov word [ebp - 0x78], 0x22
lea eax, [ebp - 0xe0]
xor ecx, ecx
mov edx, 0x20
call fcn.00404774
mov dword [ebp - 0x28], 1
mov word [ebp - 0x3a], 0x3b
mov word [ebp - 0xe0], 0x20
mov word [ebp - 0xde], 9
mov word [ebp - 0xdc], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x60], 1
xor eax, eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x42ee6f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x22
je 0x42eac5
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x27
jne 0x42ead8
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax]
mov word [ebp - 0x3c], ax
add dword [ebp - 0x2c], 2
jmp 0x42edc3
mov word [ebp - 0x3c], 0
jmp 0x42edc3
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 0x2c]
movzx esi, word [eax]
test si, si
je 0x42eafa
cmp si, 0x20
jbe 0x42eae5
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax]
cmp ax, word [ebp - 0x3c]
je 0x42edd6
mov edx, 0x42f574
mov ecx, 4
mov eax, dword [ebp - 0x2c]
call fcn.0041529c
test eax, eax
jne 0x42eb34
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax + 8]
mov word [ebp - 0x3a], ax
add dword [ebp - 0x2c], 0xa
jmp 0x42edc3
mov edx, 0x42f580
mov ecx, 7
mov eax, dword [ebp - 0x2c]
call fcn.0041529c
test eax, eax
jne 0x42ebdc
add dword [ebp - 0x2c], 0xe
mov ebx, dword [ebp - 0x2c]
jmp 0x42eb71
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x20
jne 0x42eb6d
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax + 2]
cmp ax, word [ebp - 0x3c]
jne 0x42eb86
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0
je 0x42eb86
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax]
cmp ax, word [ebp - 0x3c]
jne 0x42eb57
mov eax, dword [ebp - 0x2c]
sub eax, ebx
sar eax, 1
jns 0x42eb92
adc eax, 0
cmp eax, 0x20
jge 0x42ebb0
mov ecx, dword [ebp - 0x2c]
sub ecx, ebx
sar ecx, 1
jns 0x42eba3
adc ecx, 0
lea eax, [ebp - 0xe0]
mov edx, ebx
call fcn.0041c24c
mov eax, dword [ebp - 0x2c]
sub eax, ebx
sar eax, 1
jns 0x42ebbc
adc eax, 0
mov word [ebp + eax*2 - 0xe0], 0
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0
je 0x42edc3
add dword [ebp - 0x2c], 2
jmp 0x42edc3
mov edx, 0x42f590
mov ecx, 5
mov eax, dword [ebp - 0x2c]
call fcn.0041529c
test eax, eax
jne 0x42ec1a
add dword [ebp - 0x2c], 0xa
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jle 0x42ed7f
jmp 0x42edc3
mov edx, 0x42f59c
mov ecx, 8
mov eax, dword [ebp - 0x2c]
call fcn.0041529c
test eax, eax
jne 0x42ec49
add dword [ebp - 0x2c], 0x10
mov word [ebp - 0x76], 0x60
mov word [ebp - 0x78], 0x27
mov byte [ebp - 0x79], 1
jmp 0x42edc3
mov edx, 0x42f5b0
mov ecx, 7
mov eax, dword [ebp - 0x2c]
call fcn.0041529c
test eax, eax
jne 0x42ec78
add dword [ebp - 0x2c], 0xe
mov word [ebp - 0x76], 0x60
mov word [ebp - 0x78], 0x27
mov byte [ebp - 0x79], 1
jmp 0x42edc3
mov edx, 0x42f5c0
mov ecx, 7
mov eax, dword [ebp - 0x2c]
call fcn.0041529c
test eax, eax
jne 0x42ed7f
add dword [ebp - 0x2c], 0xe
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x58], eax
jmp 0x42ed56
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x2a
jne 0x42ecc0
add dword [ebp - 0x2c], 2
inc dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
jmp 0x42ed6f
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jle 0x42ed7f
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x2d
jne 0x42ed08
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x2c]
add eax, 2
push eax
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jle 0x42ed7f
jmp 0x42ed0e
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x50], 0
jle 0x42ed3e
cmp dword [ebp - 0x54], 0x20
jge 0x42ed3e
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x54]
jg 0x42ed3e
inc dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
dec ecx
mov eax, 1
shl eax, cl
or dword [ebp - 0x60], eax
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x54]
jle 0x42ed22
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x2c
jne 0x42ed4d
add dword [ebp - 0x2c], 2
jmp 0x42ed56
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x2a
jne 0x42ed6f
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0
je 0x42ed6f
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax]
cmp ax, word [ebp - 0x3c]
jne 0x42eca5
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x44]
jle 0x42edc3
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x44], eax
jmp 0x42edc3
push 0
lea edx, [ebp - 0xe4]
mov eax, dword [0x4595d8]
call fcn.00409d44
mov eax, dword [ebp - 0xe4]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xec], edx
mov byte [ebp - 0xe8], 0xa
lea ecx, [ebp - 0xec]
mov edx, 1
call fcn.0042b774
mov dword [ebp - 0x10], 1
jmp 0x42f537
cmp dword [ebp - 0x2c], 0
je 0x42edd6
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0
jne 0x42eae9
cmp dword [ebp - 0x44], 1
jle 0x42ee6f
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x44]
mov edx, eax
add edx, edx
mov eax, dword [0x455a28]
call fcn.0041cb80
mov dword [0x455a28], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x44]
push eax
mov eax, 0x472970
mov ecx, 1
mov edx, dword [0x42ca08]
call fcn.00408538
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x44]
jge 0x42ee5c
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x50]
mov edx, dword [0x455a28]
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + 0x18]
add cx, word [ebp - 0x50]
mov word [edx + eax*2], cx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x50]
mov edx, dword [0x472970]
xor ecx, ecx
mov dword [edx + eax*4], ecx
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x44]
jl 0x42ee25
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x50]
mov edx, dword [0x455a28]
mov word [edx + eax*2 + 2], 0
cmp dword [ebp - 0xc], 0
je 0x42ee8d
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, word [ebp - 0x76]
je 0x42ee9c
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, word [ebp - 0x78]
je 0x42ee9c
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.004254e0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x42f4e4
call fcn.0042e508
call fcn.0042c898
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0xc], 0
je 0x42eefa
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
call fcn.00406ea8
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x88], eax
jmp 0x42ef02
xor eax, eax
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, word [ebp - 0x76]
jne 0x42f107
cmp dword [ebp - 0x24], 1
jle 0x42f107
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, word [eax + edx*2 - 2]
cmp ax, word [ebp - 0x76]
jne 0x42f107
add dword [ebp - 0xc], 2
sub dword [ebp - 0x24], 2
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov word [eax + edx*2], 0
mov eax, dword [ebp - 0x24]
inc eax
call fcn.0041cad4
mov dword [ebp - 0x68], eax
push 0x42f5d0
mov eax, dword [ebp - 0xc]
push eax
call sub.msvcrt.dll__wpopen
add esp, 8
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x42efb9
push 0
lea edx, [ebp - 0xf0]
mov eax, dword [0x4598b8]
call fcn.00409d44
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0xec], edx
mov byte [ebp - 0xe8], 0xa
lea ecx, [ebp - 0xec]
mov edx, 1
call fcn.0042b774
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
jmp 0x42f537
xor eax, eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x70], eax
xor eax, eax
mov dword [ebp - 0x68], eax
jmp 0x42f09d
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x70]
cmp eax, 0x200
jge 0x42f054
add dword [ebp - 0x74], 0x200
cmp dword [ebp - 0x68], 0
je 0x42eff5
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0x74]
call fcn.00403ed0
jmp 0x42f000
mov eax, dword [ebp - 0x74]
call fcn.00403e9c
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x42f054
push 0
lea edx, [ebp - 0xf4]
mov eax, dword [0x4595e4]
call fcn.00409d44
mov eax, dword [ebp - 0xf4]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0xec], edx
mov byte [ebp - 0xe8], 0xa
lea ecx, [ebp - 0xec]
mov edx, 1
call fcn.0042b774
mov eax, dword [ebp - 0x64]
push eax
call sub.msvcrt.dll__pclose
pop ecx
mov dword [ebp - 0x10], 8
jmp 0x42f537
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x70]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x64]
push eax
push 0x200
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x70]
push eax
call sub.msvcrt.dll_fgets
add esp, 0xc
test eax, eax
je 0x42f0bd
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
call fcn.00406e94
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x64]
push eax
call sub.msvcrt.dll_feof
pop ecx
test eax, eax
jne 0x42f0bd
mov eax, dword [ebp - 0x64]
push eax
call sub.msvcrt.dll_ferror
pop ecx
test eax, eax
je 0x42efce
mov eax, dword [ebp - 0x64]
push eax
call sub.msvcrt.dll__pclose
pop ecx
mov eax, dword [ebp - 0x70]
add eax, 2
mov edx, eax
add edx, edx
lea eax, [ebp - 0x68]
call fcn.00403ed0
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x70]
call fcn.00404040
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x42f282
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, word [ebp - 0x78]
jne 0x42f155
cmp dword [ebp - 0x24], 1
jle 0x42f155
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, word [eax + edx*2 - 2]
cmp ax, word [ebp - 0x78]
jne 0x42f155
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov word [eax + edx*2 - 2], 0xa
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
sub dword [ebp - 0x24], 2
mov eax, dword [ebp - 0x24]
add eax, eax
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
jmp 0x42f2fb
cmp byte [ebp - 0x79], 0
je 0x42f168
mov eax, dword [ebp - 0xc]
call fcn.0042c0cc
mov dword [ebp - 0x40], eax
jmp 0x42f16e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
push 0
push 0
push 3
push 0
push 5
push 0x80000000
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x42f1d4
push 0
lea edx, [ebp - 0xf8]
mov eax, dword [0x459890]
call fcn.00409d44
mov eax, dword [ebp - 0xf8]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0xec], edx
mov byte [ebp - 0xe8], 0xa
lea ecx, [ebp - 0xec]
mov edx, 1
call fcn.0042b774
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
jmp 0x42f537
push 2
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov eax, dword [ebp - 0x18]
add eax, 2
add eax, eax
call fcn.00403e9c
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x42f258
push 0
lea edx, [ebp - 0xfc]
mov eax, dword [0x4595e4]
call fcn.00409d44
mov eax, dword [ebp - 0xfc]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0xec], edx
mov byte [ebp - 0xe8], 0xa
lea ecx, [ebp - 0xec]
mov edx, 1
call fcn.0042b774
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebp - 0x10], 8
jmp 0x42f537
mov dword [ebp - 0x1c], 0xffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jne 0x42f2fb
mov eax, dword [0x459898]
mov eax, dword [eax]
call fcn.0042ca38
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x18]
push eax
cmp dword [ebp - 0x80], 0
setne al
and eax, 0x7f
push eax
mov eax, dword [0x459898]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_MultiByteToWideChar_1
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
add eax, eax
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
je 0x42f2e7
mov eax, dword [ebp - 0x34]
cmp word [eax - 2], 0xa
je 0x42f2f3
mov eax, dword [ebp - 0x34]
mov word [eax], 0xa
add dword [ebp - 0x34], 2
mov eax, dword [ebp - 0x34]
mov word [eax], 0
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x34]
jae 0x42f4c8
call fcn.0042c898
mov ebx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x9c], eax
test ebx, ebx
je 0x42f350
mov dword [ebp - 0xa0], ebx
jmp 0x42f344
mov eax, dword [ebp - 0xa0]
cmp word [eax], 0xa
jne 0x42f33d
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
jmp 0x42f350
add dword [ebp - 0xa0], 2
mov eax, dword [ebp - 0xa0]
cmp word [eax], 0
jne 0x42f323
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x42f4c8
cmp ebx, dword [ebp - 0x2c]
jae 0x42f37b
mov eax, dword [ebp - 0x2c]
cmp word [eax - 2], 0xd
jne 0x42f37b
mov eax, dword [ebp - 0x2c]
mov word [eax - 2], 0
mov eax, dword [ebp - 0x2c]
mov word [eax], 0
add dword [ebp - 0x2c], 2
cmp dword [ebp - 0x48], 0
jne 0x42f4b9
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jle 0x42f3c2
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x50]
mov edx, dword [0x472970]
xor ecx, ecx
mov dword [edx + eax*4], ecx
inc dword [ebp - 0x50]
dec dword [ebp - 0x84]
jne 0x42f3a6
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x58], eax
jmp 0x42f486
call fcn.0042c898
jmp 0x42f3db
add ebx, 2
movzx esi, word [ebx]
test si, si
je 0x42f3f4
lea eax, [ebp - 0xe0]
mov edx, esi
call fcn.0041c2a8
test eax, eax
jne 0x42f3d8
cmp dword [ebp - 0x50], 0
jne 0x42f407
movzx eax, word [ebx]
cmp ax, word [ebp - 0x3a]
je 0x42f490
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x5c], 0
je 0x42f433
mov eax, dword [ebp - 0x58]
inc eax
cmp eax, dword [ebp - 0x5c]
jne 0x42f433
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x58]
mov edx, dword [0x472970]
mov ecx, dword [ebp - 0x30]
mov dword [edx + eax*4], ecx
inc dword [ebp - 0x58]
jmp 0x42f490
add ebx, 2
movzx edi, word [ebx]
test di, di
je 0x42f44c
lea eax, [ebp - 0xe0]
mov edx, edi
call fcn.0041c2a8
test eax, eax
je 0x42f430
mov word [ebx], 0
cmp ebx, dword [ebp - 0x30]
je 0x42f483
cmp dword [ebp - 0x50], 0x20
jge 0x42f483
mov ecx, dword [ebp - 0x50]
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0x60]
je 0x42f480
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x58]
mov edx, dword [0x472970]
mov ecx, dword [ebp - 0x30]
mov dword [edx + eax*4], ecx
inc dword [ebp - 0x58]
inc dword [ebp - 0x50]
add ebx, 2
cmp word [ebx], 0
jne 0x42f3d1
cmp dword [ebp - 0x58], 0
je 0x42f4bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
movzx edx, byte [ebp + 8]
call fcn.0042f84c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
call fcn.0042fd00
mov dword [ebp - 0x20], eax
mov byte [ebp + 8], 0
jmp 0x42f4bc
dec dword [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x34]
jb 0x42f307
cmp dword [ebp - 0x38], 0
je 0x42f4d6
mov eax, dword [ebp - 0x38]
call fcn.00403eb8
mov eax, dword [ebp - 0x24]
add eax, eax
add eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp word [eax], 0
je 0x42f4fa
cmp byte [0x455a24], 0
je 0x42eeac
cmp dword [ebp - 0x44], 1
jle 0x42f531
cmp dword [0x455a28], 0
je 0x42f531
mov eax, dword [0x455a28]
cmp word [eax], 0
je 0x42f531
mov eax, dword [0x455a28]
mov edx, dword [ebp - 8]
mov word [eax + edx*2 + 2], 0
mov eax, dword [0x472970]
mov edx, dword [ebp - 8]
xor ecx, ecx
mov dword [eax + edx*4 + 4], ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f567
lea eax, [ebp - 0xfc]
mov edx, 4
call fcn.00406a1c
lea eax, [ebp - 0xe4]
call fcn.004069bc
ret