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

Disassembly:
sub esp, 0x27c
mov eax, dword [0x417060]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00401970
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x401a50
xor eax, eax
jmp 0x401cba
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [0x412258]
mov edx, dword [esp + 0x24]
push edx
push edi
push 0x1f0fff
call dword [0x41204c]
mov esi, eax
cmp esi, edi
je 0x401a49
push 0x206
lea eax, [esp + 0x7e]
push edi
push eax
mov dword [esp + 0x28], edi
mov word [esp + 0x84], di
call fcn.00407510
mov ebp, dword [0x412100]
add esp, 0xc
push 4
push 0x1000
push 0x208
push edi
push esi
call ebp
push 4
push 0x1000
push 0x34
push 0
mov edi, eax
push esi
mov dword [esp + 0x34], edi
call ebp
push 0x34
xor ebp, ebp
lea ecx, [esp + 0x48]
push ebp
push ecx
mov dword [esp + 0x24], eax
call fcn.00407510
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ebp
push ebp
push 0x1004
push edx
call dword [0x412250]
test eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebp
jle 0x401c8f
mov ecx, dword [esp + 0x18]
push 0
push 0x34
lea eax, [esp + 0x4c]
push eax
push ecx
push esi
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], 0x208
call dword [0x4120a8]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
push 0
push 0x104b
push eax
call dword [0x412250]
push 0
push 0x208
lea ecx, [esp + 0x80]
push ecx
push edi
push esi
call dword [0x412050]
mov ecx, 0x4142e0
lea eax, [esp + 0x78]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401b86
test dx, dx
je 0x401b82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401b86
add eax, 4
add ecx, 4
test dx, dx
jne 0x401b60
xor eax, eax
jmp 0x401b8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401c73
add dword [esp + 0x14], 1
push 4
push 0x1000
push 0x10
push eax
push esi
call dword [0x412100]
mov edi, eax
xor eax, eax
push eax
push 0x10
lea edx, [esp + 0x3c]
push edx
push edi
push esi
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call dword [0x4120a8]
mov eax, dword [esp + 0x10]
push edi
push ebp
push 0x1038
push eax
call dword [0x412250]
test eax, eax
je 0x401bf8
push 0
push 0x10
push ebx
push edi
push esi
call dword [0x412050]
mov dword [esp + 0x1c], eax
push 0x8000
push 0
push edi
push esi
call dword [0x412054]
push 4
push 0x1000
push 8
push 0
push esi
call dword [0x412100]
mov ecx, dword [esp + 0x10]
mov edi, eax
push edi
push ebp
push 0x1010
push ecx
call dword [0x412250]
test eax, eax
je 0x401c60
push 0
push 8
lea edx, [esp + 0x34]
push edx
push edi
push esi
call dword [0x412050]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, ecx
sub eax, dword [ebx]
mov dword [ebx], ecx
sub dword [ebx + 8], eax
mov eax, dword [ebx + 8]
sub eax, ecx
add eax, edx
mov dword [ebx + 4], edx
mov dword [ebx + 0xc], eax
push 0x8000
push 8
push edi
push esi
call dword [0x412054]
mov edi, dword [esp + 0x20]
add ebp, 1
cmp ebp, dword [esp + 0x28]
jl 0x401af4
cmp dword [esp + 0x14], 1
jle 0x401c8f
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
mov ebx, dword [0x412054]
push 0x8000
push 0
push eax
push esi
call ebx
push 0x8000
push 0
push edi
push esi
call ebx
push esi
call dword [0x412060]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040663d
add esp, 0x27c
ret