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

Disassembly:
push 0xffffffffffffffff
push 0x4d35a8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x78]
mov edi, edx
cmp dword [ebp], 0
je 0x421ee3
mov ecx, ebp
call fcn.004732d0
mov dword [ebp], 0
push 0
lea ecx, [esp + 0x20]
call fcn.00482050
lea ecx, [esp + 0x30]
mov dword [esp + 0x6c], 0
call fcn.00491850
lea ecx, [esp + 0x48]
mov byte [esp + 0x6c], 1
call fcn.00491850
mov bl, 2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], bl
call fcn.00476520
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], esi
call fcn.00491bf0
push 0xffffffffffffffff
push 0x51395c
lea ecx, [esp + 0x3c]
call fcn.00473ec0
push 0xffffffffffffffff
push 0x5139c0
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0x10
call fcn.004748c0
push 0xffffffffffffffff
push 0x5139b0
lea ecx, [esp + 0x80]
mov byte [esp + 0x74], 3
call fcn.004748c0
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x78], 4
call fcn.00491ae0
lea ecx, [esp + 0x78]
mov byte [esp + 0x6c], 3
call fcn.004732d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], bl
call fcn.004732d0
push 0
push 0xffffffffffffffff
push esi
call fcn.004780f0
add esp, 4
push eax
lea ecx, [esp + 0x24]
call fcn.004748e0
push 0xffffffffffffffff
push 0x513964
lea ecx, [esp + 0x80]
mov byte [esp + 0x74], 5
call fcn.004748c0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x78], 6
call fcn.00491ae0
lea ecx, [esp + 0x78]
mov byte [esp + 0x6c], 5
call fcn.004732d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], bl
call fcn.004732d0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x20]
call fcn.004930d0
lea ecx, [esp + 0x48]
call fcn.00491bf0
push 0xffffffffffffffff
push 0x513978
lea ecx, [esp + 0x54]
call fcn.00473ec0
mov eax, dword [edi + 8]
test eax, eax
mov dword [esp + 0x48], 0x30
je 0x422080
mov edx, dword [eax - 0xc]
shr edx, 2
je 0x422080
push esi
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.004808b0
test eax, eax
jl 0x422168
cmp dword [esp + 0x3c], 0
je 0x422080
cmp dword [esp + 0x54], 0
jne 0x422072
lea ecx, [esp + 0x48]
call fcn.00491970
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x58]
call fcn.00492fd0
mov ebx, dword [esp + 0x74]
mov eax, dword [ebx + 8]
test eax, eax
jne 0x42208f
xor edi, edi
jmp 0x422095
mov edi, dword [eax - 0xc]
shr edi, 2
xor esi, esi
test edi, edi
jle 0x4220f9
jmp 0x4220a0
lea ecx, [esp + 0x30]
call fcn.00491bf0
push esi
mov ecx, ebx
call fcn.00492900
test eax, eax
je 0x4220f2
push 0
push 0
lea edx, [esp + 0x38]
push edx
mov ecx, eax
call fcn.0048ead0
test eax, eax
jl 0x422168
cmp dword [esp + 0x3c], 0
je 0x4220f2
cmp dword [esp + 0x54], 0
jne 0x4220e4
lea ecx, [esp + 0x48]
call fcn.00491970
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
push eax
call fcn.00492fd0
add esi, 1
cmp esi, edi
jl 0x4220a0
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x20]
call fcn.004930d0
cmp dword [esp + 0x7c], 1
push 0
lea ecx, [esp + 0x20]
jne 0x42211c
push ebp
call fcn.00482b90
jmp 0x422124
push 1
push ebp
call fcn.004823a0
cmp eax, 1
jne 0x422168
mov eax, dword [ebp]
test eax, eax
jne 0x422134
xor esi, esi
jmp 0x422137
mov esi, dword [eax - 0xc]
lea ecx, [esp + 0x48]
mov byte [esp + 0x6c], 1
call fcn.004926f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 0
call fcn.004926f0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00419a60
mov eax, esi
jmp 0x422198
lea ecx, [esp + 0x48]
mov byte [esp + 0x6c], 1
call fcn.004926f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 0
call fcn.004926f0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00419a60
or eax, 0xffffffff
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc