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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x53643b
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebp
push edi
mov edi, ecx
test byte [edi + 4], 1
jne 0x42036b
cmp dword [edi + 0x364], 0xffffffff
je 0x42036b
lea eax, [esp + 0x60]
mov ecx, 4
xor ebp, ebp
mov dword [eax - 8], ebp
mov dword [eax - 4], ebp
mov dword [eax], ebp
add eax, 0xc
dec ecx
jne 0x420051
push ebx
lea eax, [esp + 0x28]
push esi
push eax
lea ecx, [esp + 0x64]
push edi
push ecx
mov word [esp + 0x3c], bp
mov word [esp + 0x3a], bp
mov word [esp + 0x38], bp
mov word [esp + 0x3e], 3
call fcn.00453ee0
lea edx, [esp + 0x38]
lea eax, [esp + 0x78]
push edx
push edi
push eax
mov word [esp + 0x4a], 6
call fcn.00453ee0
lea ecx, [esp + 0x44]
lea edx, [esp + 0x90]
push ecx
push edi
push edx
mov word [esp + 0x56], 0x11
call fcn.00453ee0
lea eax, [esp + 0x50]
lea ecx, [esp + 0xa8]
push eax
push edi
push ecx
mov word [esp + 0x62], 0xd
call fcn.00453ee0
movsx eax, word [edi + 0x21e]
add esp, 0x30
lea ebx, [edi + 8]
shl eax, 0xc
push ebx
lea ecx, [esp + 0x64]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
call fcn.004e75c0
push ebx
lea ecx, [esp + 0x70]
call fcn.004e75c0
push ebx
lea ecx, [esp + 0x7c]
call fcn.004e75c0
push ebx
lea ecx, [esp + 0x88]
call fcn.004e75c0
lea edx, [esp + 0x40]
lea eax, [edi + 0x164]
push edx
push eax
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x1c], 0x40
mov dword [esp + 0x18], 0xffffffe0
mov dword [esp + 0x20], 0xffffffc0
call fcn.0046d3e0
lea eax, [esp + 0x48]
push eax
call fcn.0046d7b0
add esp, 0xc
lea esi, [esp + 0x60]
mov dword [esp + 0x20], 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0xc
push ecx
mov ecx, esi
call fcn.004e7650
push esi
call fcn.0046d870
call fcn.0046da40
push esi
call fcn.0046d790
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, ecx
jle 0x42019b
mov dword [esp + 0x1c], eax
jmp 0x4201a5
cmp eax, dword [esp + 0x10]
jge 0x4201a5
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jle 0x4201b6
mov dword [esp + 0x14], eax
jmp 0x4201c0
cmp eax, dword [esp + 0x18]
jge 0x4201c0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add esi, 0xc
dec eax
mov dword [esp + 0x20], eax
jne 0x420163
lea edx, [esp + 0x24]
lea ecx, [esp + 0x34]
push edx
mov dword [esp + 0x28], 0xc
call fcn.004e7650
lea eax, [esp + 0x34]
push eax
call fcn.0046d870
call fcn.0046da40
lea ecx, [esp + 0x38]
push ecx
call fcn.0046d790
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x8c], edx
mov edx, dword [edi + 0x364]
lea eax, [edi + 0x164]
push eax
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x94], ebp
mov dword [esp + 0x30], edx
call fcn.0046d7b0
add esp, 0xc
lea esi, [esp + 0x60]
mov dword [esp + 0x20], 4
push esi
call fcn.0046d870
call fcn.0046da40
push esi
call fcn.0046d790
add esp, 8
lea eax, [esp + 0x28]
mov ecx, esi
mov dword [esp + 0x28], 0xc
push eax
call fcn.004e7680
mov ecx, dword [ebx]
mov eax, dword [esi]
mov edx, dword [esp + 0x24]
add eax, ecx
mov dword [esi], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 4], edx
mov edx, dword [esi + 8]
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [esi + 8], edx
add esi, 0xc
dec eax
mov dword [esp + 0x20], eax
jne 0x420274
mov eax, dword [edi + 0x368]
pop esi
cmp eax, ebp
pop ebx
jne 0x42031d
push 0x84
call fcn.004088a0
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov dword [esp + 0x90], ebp
je 0x4202f5
mov ecx, eax
call fcn.00408fa0
jmp 0x4202f7
xor eax, eax
push ebp
push ebp
mov ecx, eax
mov dword [esp + 0x98], 0xffffffff
mov dword [edi + 0x368], eax
call fcn.004090e0
mov ecx, dword [edi + 0x368]
mov word [ecx + 0x38], 0x20
mov ecx, dword [edi + 0x368]
push 0x40
call fcn.004093e0
mov ecx, dword [edi + 0x368]
call fcn.004093a0
lea edx, [esp + 0x7c]
lea eax, [esp + 0x70]
push edx
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [edi + 0x368]
push edx
call fcn.004092c0
pop edi
pop ebp
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
add esp, 0x8c
ret
mov ecx, dword [edi + 0x368]
xor ebp, ebp
cmp ecx, ebp
je 0x420383
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x368], ebp
mov ecx, dword [esp + 0x88]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x8c
ret