Function at 0x417f9b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
cmp dword [ebp + 8], 0
je 0x417fae
cmp dword [ebp + 0xc], 0
jne 0x417fbd
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x418adf
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x110], 0
jne 0x41800f
mov dword [ebp - 0x58], 0
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x54], eax
cmp dword [ebp + 0x14], 0
je 0x418007
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x58]
mov dword [edx], eax
mov eax, dword [ebp - 0x54]
jmp 0x418adf
cmp dword [ebp + 0x18], 0
je 0x41805a
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
jne 0x418041
mov edx, dword [ebp + 0x18]
cmp dword [edx + 4], 0
jne 0x418041
mov eax, dword [ebp + 0x18]
cmp dword [eax + 8], 0
jne 0x418041
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0xc], 0
jne 0x418041
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x10], 0
je 0x41805a
push 0
mov eax, dword [ebp + 0x18]
add eax, 0xc
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00417e43
cmp dword [ebp + 0x10], 0
jne 0x418089
cmp dword [ebp + 0x14], 0
je 0x41806f
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
cmp dword [ebp + 0x18], 0
je 0x41807f
mov edx, dword [ebp + 0x18]
mov dword [edx + 4], 0
mov eax, 1
jmp 0x418adf
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x110]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x144]
mov ecx, dword [eax + 0xc]
shl ecx, 4
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x134]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x11c]
cmp edx, dword [eax + ecx + 8]
jbe 0x4180c3
xor eax, eax
jmp 0x418adf
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x144]
mov edx, dword [ecx + 0xc]
shl edx, 4
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x134]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x11c]
cmp eax, dword [ecx + edx + 8]
jne 0x418113
cmp dword [ebp + 0x14], 0
je 0x4180f9
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
cmp dword [ebp + 0x18], 0
je 0x418109
mov edx, dword [ebp + 0x18]
mov dword [edx + 4], 0
mov eax, 1
jmp 0x418adf
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x144]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x11c]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x2c]
shl edx, 4
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x134]
cmp ecx, dword [eax + edx + 8]
jbe 0x418169
mov ecx, dword [ebp - 0x2c]
shl ecx, 4
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x134]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + ecx + 8]
sub eax, dword [edx + 0x11c]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dx, word [ecx + 0x152]
mov ecx, edx
mov eax, 0x200
shl eax, cl
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x11c]
xor edx, edx
div dword [ebp - 0x50]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x11c]
sub ecx, edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor edx, edx
div dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x11c]
add eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp - 0x50]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x11c]
add eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp - 0x50]
test edx, edx
je 0x4181da
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x2c]
shl edx, 4
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x134]
mov eax, dword [ecx + edx + 8]
xor edx, edx
div dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x2c]
shl edx, 4
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x134]
mov eax, dword [ecx + edx + 8]
xor edx, edx
div dword [ebp - 0x50]
test edx, edx
je 0x41821a
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x11c]
xor edx, edx
div dword [ebp - 0x50]
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x11c]
add eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp - 0x50]
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
jne 0x41824b
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x40], edx
push 4
push 0x1000
mov eax, dword [ebp - 0x50]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41828d
cmp dword [ebp + 0x14], 0
je 0x418276
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
cmp dword [ebp + 0x18], 0
je 0x418286
mov edx, dword [ebp + 0x18]
mov dword [edx + 4], 0
xor eax, eax
jmp 0x418adf
push 4
push 0x1000
mov eax, dword [ebp - 0x50]
shl eax, 4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4182e3
push 0x8000
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp + 0x14], 0
je 0x4182cc
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
cmp dword [ebp + 0x18], 0
je 0x4182dc
mov eax, dword [ebp + 0x18]
mov dword [eax + 4], 0
xor eax, eax
jmp 0x418adf
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x118]
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], 0
push 4
mov eax, dword [0x440964]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x144
push ecx
call fcn.00431a80
add esp, 0xc
test eax, eax
jne 0x418360
push 0
push 0
mov edx, dword [ebp - 0x2c]
shl edx, 4
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x134]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x12c]
add eax, dword [ecx + edx]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x128], 0
jne 0x418515
push 4
push 0x1000
mov edx, dword [ebp - 0x4c]
lea eax, [edx*4 + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x4183db
push 0x8000
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp + 0x14], 0
je 0x4183c4
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
cmp dword [ebp + 0x18], 0
je 0x4183d4
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 4], 0
xor eax, eax
jmp 0x418adf
mov edx, dword [ebp - 0x2c]
shl edx, 4
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x134]
mov edx, dword [ecx + edx + 0xc]
and edx, 0x200
cmp edx, 0x200
je 0x41841f
mov eax, dword [ebp - 0x2c]
shl eax, 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x134]
mov eax, dword [edx + eax + 0xc]
and eax, 0x100
cmp eax, 0x100
jne 0x4184b4
push 0
push 0
mov ecx, dword [ebp - 0x2c]
shl ecx, 4
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x134]
mov edx, dword [ebp - 0x44]
mov edx, dword [edx + 0x12c]
add edx, dword [eax + ecx]
add edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x4c]
lea ecx, [eax*4 + 4]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x2c]
shl edx, 4
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x134]
mov edx, dword [ecx + edx + 0xc]
and edx, 0x10000
test edx, edx
je 0x4184b2
mov eax, dword [ebp - 4]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x4c]
lea edx, [ecx*4 + 4]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00420355
add esp, 0xc
jmp 0x418509
mov dword [ebp - 0x3c], 0
jmp 0x4184c6
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x4c]
add edx, 1
cmp dword [ebp - 0x3c], edx
jae 0x418509
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x4c]
jae 0x4184eb
mov ecx, dword [ebp - 0x3c]
imul ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x5c]
mov dword [eax + edx*4], ecx
jmp 0x418507
mov ecx, dword [ebp - 0x2c]
shl ecx, 4
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x134]
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x5c]
mov eax, dword [eax + ecx + 8]
mov dword [esi + edx*4], eax
jmp 0x4184bd
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0x128], edx
push 4
push 0x1000
mov eax, dword [ebp - 0x50]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x418579
push 0x8000
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp + 0x14], 0
je 0x418562
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
cmp dword [ebp + 0x18], 0
je 0x418572
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 4], 0
xor eax, eax
jmp 0x418adf
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], edx
jmp 0x418598
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x1c]
jae 0x418a8a
cmp dword [ebp - 0x10], 0
jne 0x418733
push 0
push 0
mov edx, dword [ebp - 0x2c]
shl edx, 4
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x134]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x12c]
add eax, dword [ecx + edx]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x128]
mov ecx, dword [ebp - 0x3c]
add eax, dword [edx + ecx*4]
push eax
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x3c]
add edx, 0x10
cmp edx, dword [ebp - 0x1c]
jbe 0x41869e
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x128]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x128]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x3c]
mov edx, dword [edx + eax*4]
sub edx, dword [ecx + esi*4]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418699
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp + 0x14], 0
je 0x418683
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
cmp dword [ebp + 0x18], 0
je 0x418692
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x38]
mov dword [edx + 4], eax
xor eax, eax
jmp 0x418adf
jmp 0x418733
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x128]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x128]
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x3c]
mov eax, dword [eax + ecx*4 + 0x40]
sub eax, dword [edx + esi*4]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418733
push 0x8000
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp + 0x14], 0
je 0x41871d
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x38]
mov dword [ecx], edx
cmp dword [ebp + 0x18], 0
je 0x41872c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
xor eax, eax
jmp 0x418adf
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x128]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x128]
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x3c]
mov eax, dword [eax + ecx*4 + 4]
sub eax, dword [edx + esi*4]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x128]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x128]
mov esi, dword [ebp - 0x30]
mov eax, dword [eax + ecx*4]
sub eax, dword [edx + esi*4]
mov ecx, dword [ebp - 0x34]
add ecx, eax
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00431640
add esp, 0xc
mov eax, dword [ebp - 0x2c]
shl eax, 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x134]
mov eax, dword [edx + eax + 0xc]
and eax, 0x10000
test eax, eax
je 0x4187d5
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x128]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x128]
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x3c]
mov eax, dword [eax + ecx*4 + 4]
sub eax, dword [edx + esi*4]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00420355
add esp, 0xc
mov edx, dword [ebp - 0x4c]
sub edx, 1
cmp dword [ebp - 0x3c], edx
jne 0x418817
mov eax, dword [ebp - 0x2c]
shl eax, 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x134]
mov eax, dword [edx + eax + 8]
xor edx, edx
div dword [ebp - 0x50]
test edx, edx
je 0x418817
mov eax, dword [ebp - 0x2c]
shl eax, 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x134]
mov eax, dword [edx + eax + 8]
xor edx, edx
div dword [ebp - 0x50]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x128]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x128]
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x3c]
mov edx, dword [edx + eax*4 + 4]
sub edx, dword [ecx + esi*4]
cmp edx, dword [ebp - 0x50]
je 0x4189b0
mov eax, dword [ebp - 0x2c]
shl eax, 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x134]
mov eax, dword [edx + eax + 0xc]
and eax, 0x200
test eax, eax
je 0x418921
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x128]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x128]
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x3c]
mov eax, dword [eax + ecx*4 + 4]
sub eax, dword [edx + esi*4]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.00431640
add esp, 0xc
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax]
and ecx, 0x34
test ecx, ecx
je 0x4188eb
call fcn.00420aaa
cmp dword [0x447ad8], 0
je 0x4188e9
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x128]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x128]
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x3c]
mov eax, dword [eax + ecx*4 + 4]
sub eax, dword [edx + esi*4]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [0x447ad8]
jmp 0x41891c
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x128]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x128]
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x3c]
mov edx, dword [edx + eax*4 + 4]
sub edx, dword [ecx + esi*4]
push edx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00420e2d
jmp 0x4189b0
mov eax, dword [ebp - 0x2c]
shl eax, 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x134]
mov eax, dword [edx + eax + 0xc]
and eax, 0x100
test eax, eax
je 0x4189b0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
mov byte [edx], 8
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x128]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x128]
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ecx + edx*4 + 4]
sub ecx, dword [eax + esi*4]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x68]
add eax, 1
push eax
call fcn.00431640
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x128]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x128]
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x3c]
mov edx, dword [edx + eax*4 + 4]
sub edx, dword [ecx + esi*4]
add edx, 1
push edx
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00420e2d
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x48]
jne 0x4189fc
mov ecx, dword [ebp - 0x50]
sub ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00431640
add esp, 0xc
mov ecx, dword [ebp - 0x50]
sub ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x38]
add edx, ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x11c]
add edx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x11c], edx
jmp 0x418a73
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
cmp dword [ebp - 0x3c], ecx
jne 0x418a3e
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x38]
push ecx
call fcn.00431640
add esp, 0xc
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x40]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x11c]
add ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x11c], ecx
jmp 0x418a73
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x38]
push edx
call fcn.00431640
add esp, 0xc
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x11c]
add edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x11c], edx
mov eax, dword [ebp - 0x10]
add eax, 1
xor edx, edx
mov ecx, 0x10
div ecx
mov dword [ebp - 0x10], edx
jmp 0x41858f
push 0x8000
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp + 0x14], 0
je 0x418acb
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
mov dword [edx], eax
cmp dword [ebp + 0x18], 0
je 0x418ada
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 4], edx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14