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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x549944]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], eax
push edi
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], edx
mov ebx, dword [esi + 4]
push ecx
push edx
mov dword [esp + 0x20], esi
mov eax, dword [ebx]
push eax
mov dword [esp + 0x1c], ebx
mov eax, dword [eax + 0xc8]
call eax
add esp, 0x10
test eax, eax
jne 0x421fad
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edi, dword [edx + 8]
cmp ecx, dword [edi + 4]
je 0x421af9
mov eax, dword [edx + 4]
cmp ecx, 1
mov dword [edi + 0x38], eax
setne al
mov dword [edi + 0x48], edx
dec al
mov dword [edi + 0x34], ebx
and al, 0x64
mov dword [edi + 4], ecx
mov byte [edi + 9], al
mov edx, ecx
mov ecx, esi
push 0
call fcn.004219a0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x421b88
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x421b6b
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0040d5a0
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov dword [eax], 0
cmp byte [ebx + 0x11], 0
je 0x421f44
mov cl, byte [esi + 9]
mov ebx, dword [esi + 4]
test cl, cl
je 0x421bb9
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x421bb9
mov ecx, esi
call fcn.00416d50
mov cl, byte [esi + 9]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + 0x34]
bswap ebx
test cl, cl
je 0x421bd5
add dword [esi + 0xc], 0xffffffff
jne 0x421bd5
mov ecx, esi
call fcn.00416d10
cmp dword [esp + 0x10], ebx
jne 0x421c64
push dword [edi + 4]
mov ecx, dword [edi + 0x34]
mov edx, edi
call fcn.0041d5e0
mov edx, dword [edi + 0x48]
add esp, 4
mov esi, eax
mov dword [esp + 0x1c], esi
test byte [edx + 0x1c], 0x20
je 0x421c41
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x2c]
add esp, 0x10
jmp 0x421c48
mov ecx, edx
call fcn.0040d5a0
test esi, esi
je 0x421e3d
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x421cac
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x421cb3
mov ecx, edx
call fcn.0040d5a0
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push 0
push ecx
push ebx
mov eax, dword [edi]
push eax
mov eax, dword [eax + 0xc8]
call eax
add esp, 0x10
test eax, eax
jne 0x421fad
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 8]
cmp ebx, dword [esi + 4]
je 0x421cfd
mov eax, dword [ecx + 4]
cmp ebx, 1
mov dword [esi + 0x38], eax
setne al
mov dword [esi + 0x48], ecx
dec al
mov dword [esi + 0x34], edi
and al, 0x64
mov dword [esi + 4], ebx
mov byte [esi + 9], al
push 0
push dword [esp + 0x14]
mov edx, esi
mov ecx, edi
push 0
push 1
call fcn.0041a160
mov edx, dword [esi + 0x48]
add esp, 0x10
mov dword [esp + 0x20], eax
test byte [edx + 0x1c], 0x20
je 0x421d63
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x1c]
add esp, 0x10
jmp 0x421d6a
mov ecx, edx
call fcn.0040d5a0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x421fad
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xc8]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x421fab
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 8]
cmp ebx, dword [esi + 4]
je 0x421dc2
mov eax, dword [ecx + 4]
cmp ebx, 1
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x34], eax
setne al
dec al
mov dword [esi + 0x48], ecx
and al, 0x64
mov dword [esi + 4], ebx
mov byte [esi + 9], al
push dword [esi + 4]
mov ecx, dword [esi + 0x34]
mov edx, esi
call fcn.0041d5e0
add esp, 4
mov edi, eax
mov dword [esp + 0x20], edi
test esi, esi
je 0x421e2f
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x421e28
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x30]
add esp, 0x10
jmp 0x421e2f
mov ecx, edx
call fcn.0040d5a0
test edi, edi
jne 0x421fab
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
mov ecx, dword [esp + 0xc]
dec ebx
mov eax, dword [0x54b1cc]
xor edx, edx
div dword [ecx + 0x20]
lea esi, [ebx - 2]
lea edi, [eax + 1]
cmp ebx, edi
je 0x421e8d
cmp ebx, 2
jae 0x421e5f
xor ecx, ecx
jmp 0x421e85
mov eax, 0xcccccccd
mul dword [ecx + 0x24]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, esi
sub eax, edx
lea ecx, [eax + 2]
sub ecx, edi
neg ecx
sbb ecx, ecx
add ecx, 3
add ecx, eax
cmp ecx, ebx
jne 0x421e91
mov ecx, dword [esp + 0xc]
dec ebx
dec esi
jmp 0x421e52
mov esi, dword [esp + 0x14]
cmp byte [esi + 9], 0
mov edi, dword [esi + 4]
je 0x421eae
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x421eae
mov ecx, esi
call fcn.00416d50
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x421edd
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x421edd
cmp dword [edx + 0x60], 0
je 0x421ed9
call fcn.004118e0
jmp 0x421f02
xor edi, edi
jmp 0x421f0c
mov eax, dword [edx + 0x28]
test eax, eax
je 0x421ee8
mov edi, eax
jmp 0x421f15
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x421efd
call fcn.00413410
jmp 0x421f02
call fcn.00413340
mov dword [esp + 0xc], eax
mov edi, eax
test eax, eax
jne 0x421f15
mov eax, dword [esp + 0x14]
bswap ebx
mov dword [eax + 0x34], ebx
cmp byte [esi + 9], 0
je 0x421fab
add dword [esi + 0xc], 0xffffffff
jne 0x421fab
mov ecx, esi
call fcn.00416d10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
push dword [edi + 4]
mov ecx, dword [edi + 0x34]
mov edx, edi
call fcn.0041d5e0
mov edx, dword [edi + 0x48]
add esp, 4
mov dword [esp + 0xc], eax
test byte [edx + 0x1c], 0x20
je 0x421fa0
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x421fa7
mov ecx, edx
call fcn.0040d5a0
mov edi, dword [esp + 0xc]
mov eax, edi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret