Function at 0x420010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x280
mov ebx, edx
mov edi, ecx
lea esi, [esp + 0x78]
push 0x200
push 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
lea eax, [esp + 0x40]
push eax
push edi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fstat32i64
add esp, 8
mov edi, 0x7f2bb7ac
test eax, eax
je 0x42006a
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x58]
or eax, dword [esp + 0x5c]
je 0x420393
push esi
push 0xfffffe00
push 0
push 0
mov ebx, dword [esp + 0x14]
push dword [ebx + 4]
call fcn.0041b6e0
add esp, 0x14
test eax, eax
jne 0x420060
mov eax, 0x4e553245
xor eax, dword [esp + 0x78]
mov ecx, 0x32304f44
xor ecx, dword [esp + 0x7c]
or ecx, eax
jne 0x420060
push 0x1fc
push esi
push 0xffffffffffffffff
call fcn.00412ab0
add esp, 0xc
cmp dword [esp + 0x274], eax
jne 0x420060
mov edx, dword [esp + 0x98]
lea eax, [edx - 0x400]
cmp eax, 0xffc00
ja 0x420060
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x420060
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x24], eax
mov esi, ebx
mov ebx, dword [esp + 0x88]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push edx
push eax
mov dword [esp + 0x18], edx
call dword [ecx + 0x10]
add esp, 8
mov eax, dword [esp + 0xac]
or eax, dword [esp + 0xb0]
jne 0x420060
mov edx, dword [esi + 4]
lea ecx, [esp + 0x78]
push dword [esi + 0x34]
push dword [esp + 0xc]
mov dword [esp + 0x14], ebx
push ebx
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.00420430
add esp, 0x10
mov edi, 0x7f2bb7ad
test eax, eax
jne 0x420060
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 0
mov ecx, esi
call fcn.00420510
mov edi, 0x7f2bb7ac
test eax, eax
jne 0x420060
mov eax, dword [esp + 0x24]
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
test eax, eax
je 0x420358
mov edi, dword [esp + 4]
mov eax, dword [edi + 0x38]
mov esi, dword [edi + 0x3c]
shld esi, eax, 0x1c
mov eax, dword [esp + 0x10]
add eax, 0xffffffff
mov dword [esp + 0x30], eax
lea eax, [edi + 8]
mov dword [esp + 0x28], eax
mov eax, 1
sub eax, esi
mov dword [esp + 0x2c], eax
add esi, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jmp 0x420216
mov esi, dword [esp + 0x18]
add esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x24]
jae 0x420358
mov ebx, dword [esp + 4]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
push dword [ebx + 0x28]
push 1
mov dword [esp + 0x10], edx
push edx
mov esi, ecx
push ecx
push dword [ebx + 4]
call fcn.0041b6e0
add esp, 0x14
test eax, eax
jne 0x42039a
mov eax, dword [ebx + 0x28]
mov edi, 0x7f2bb7ac
cmp dword [eax], 0xcadecade
mov ecx, dword [esp + 0x10]
jne 0x42039c
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
mov dword [eax + 4], 0
push ecx
push dword [ebx + 0x28]
push 0xffffffffffffffff
call fcn.00412ab0
add esp, 0xc
cmp dword [esp + 0xc], eax
jne 0x42039c
mov ecx, esi
add ecx, 1
mov edx, dword [esp + 8]
adc edx, 0
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x1c], eax
sub eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
cmp eax, esi
cmova eax, esi
test eax, eax
je 0x4201f4
mov eax, dword [esp + 4]
mov ebx, dword [eax + 0x28]
add ebx, 0x10
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x14]
cmp eax, esi
cmovae eax, esi
neg eax
mov dword [esp + 0x1c], eax
mov esi, 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov edi, dword [esp + 0x34]
mov eax, edi
mul dword [ebx]
mov ecx, dword [ebx + 4]
imul ecx, edi
add edx, ecx
push 0
mov edi, dword [esp + 0x14]
push edi
push edx
push eax
call fcn.004242b0
add esp, 0x10
mov dword [esp + 0x3c], eax
mov ecx, edx
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0xc]
add eax, dword [esp + 0x30]
xor edx, edx
div edi
mov edi, eax
push eax
push ecx
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.00418050
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esp, 0x10
add ecx, edi
mov eax, dword [esp + 4]
adc edx, 0
mov dword [eax + 0xc], edx
mov dword [eax + 8], ecx
mov dword [eax + 0x30], esi
mov eax, dword [esp + 0x1c]
add eax, esi
add eax, 1
add esi, 1
add ebx, 0x10
cmp eax, 1
jne 0x4202c8
jmp 0x4201f4
mov eax, dword [esp + 0xa4]
and eax, 0xfffffffe
mov ecx, dword [esp + 4]
mov dword [ecx + 0x14c], eax
mov eax, dword [esp + 0xa8]
mov dword [ecx + 0x150], eax
mov eax, dword [esp + 0xac]
mov dword [ecx + 0x154], eax
mov eax, dword [esp + 0xb0]
mov dword [ecx + 0x158], eax
xor edi, edi
jmp 0x420060
mov edi, eax
mov dword [ebx + 0x30], 0
xorps xmm0, xmm0
mov eax, dword [esp + 0x28]
movups xmmword [eax], xmm0
push dword [ebx + 0x28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [ebx + 0x28], 0
push dword [ebx + 0x50]
call fcn.00431b60
add esp, 4
mov dword [ebx + 0x40], 0
jmp 0x420060