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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x549944]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x18], edx
push esi
push edi
mov dword [esp + 0x28], ebx
mov edi, dword [ebx + 4]
mov dword [esp + 0xc], edi
cmp byte [edi + 0x11], 0
je 0x42162d
mov eax, dword [edi + 8]
mov esi, edi
test eax, eax
je 0x4210ae
nop dword [eax + eax]
and byte [eax + 1], 0xfb
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x4210a0
mov esi, dword [ebx + 4]
mov cl, byte [ebx + 9]
test cl, cl
je 0x4210c8
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x4210c8
mov ecx, ebx
call fcn.00416d50
mov cl, byte [ebx + 9]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x38]
mov esi, dword [eax + 0x34]
bswap esi
test cl, cl
je 0x4210e4
add dword [ebx + 0xc], 0xffffffff
jne 0x4210e4
mov ecx, ebx
call fcn.00416d10
mov ebx, dword [esp + 0xc]
inc esi
mov edi, esi
mov dword [esp + 0x14], esi
cmp edi, 2
jae 0x4210f8
xor ecx, ecx
jmp 0x42112c
mov eax, 0xcccccccd
lea esi, [edi - 2]
mul dword [ebx + 0x24]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x54b1cc]
xor ecx, ecx
sub esi, edx
xor edx, edx
div dword [ebx + 0x20]
dec eax
cmp esi, eax
sete cl
add esi, 2
add ecx, esi
mov esi, dword [esp + 0x14]
cmp edi, ecx
je 0x42113f
mov eax, dword [0x54b1cc]
xor edx, edx
div dword [ebx + 0x20]
inc eax
cmp edi, eax
jne 0x421144
lea esi, [edi + 1]
jmp 0x4210e9
push 1
lea eax, [esp + 0x20]
mov ecx, ebx
push esi
push eax
lea edx, [esp + 0x30]
call fcn.0041c9e0
mov ebx, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4216cd
cmp dword [esp + 0x1c], edi
je 0x4214cc
mov edi, dword [esp + 0xc]
mov byte [esp + 0x10], 0
mov dword [esp + 0x28], 0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x42119e
push 0
xor edx, edx
call fcn.00417050
add esp, 4
mov dword [esp + 0x18], eax
jmp 0x4211a6
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x24]
test edx, edx
je 0x421205
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4211fe
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 + 0x24]
add esp, 0x10
mov edi, dword [esp + 0xc]
jmp 0x421205
mov ecx, edx
call fcn.0040d5a0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4216cd
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push 0
push ecx
push esi
push eax
mov eax, dword [eax + 0xc8]
call eax
add esp, 0x10
test eax, eax
jne 0x4216cd
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 8]
mov dword [esp + 0x18], ecx
cmp esi, dword [ecx + 4]
je 0x42125b
mov eax, dword [edx + 4]
cmp esi, 1
mov dword [ecx + 0x38], eax
setne al
mov dword [ecx + 0x48], edx
dec al
mov dword [ecx + 0x34], edi
and al, 0x64
mov dword [ecx + 4], esi
mov byte [ecx + 9], al
lea eax, [esp + 0x28]
mov edx, esi
push eax
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00417490
mov cl, byte [esp + 0x18]
add esp, 8
mov dword [esp + 0x24], eax
cmp cl, 1
je 0x421445
cmp cl, 2
je 0x421445
test eax, eax
jne 0x42146c
mov edx, dword [esp + 0x18]
mov ecx, edi
push eax
push dword [esp + 0x20]
push dword [esp + 0x30]
push dword [esp + 0x1c]
call fcn.0041a160
mov dword [esp + 0x34], eax
add esp, 0x10
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x421306
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 + 0x24]
add esp, 0x10
mov edi, dword [esp + 0xc]
jmp 0x42130d
mov ecx, edx
call fcn.0040d5a0
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4216cd
mov eax, dword [edi]
lea ecx, [esp + 0x28]
push 0
push ecx
push esi
push eax
mov eax, dword [eax + 0xc8]
call eax
add esp, 0x10
test eax, eax
jne 0x4216cd
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov esi, dword [ecx + 8]
cmp edi, dword [esi + 4]
je 0x421369
mov eax, dword [ecx + 4]
cmp edi, 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], edi
mov byte [esi + 9], al
jmp 0x42136c
mov ecx, dword [esi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x421397
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x421397
cmp dword [edx + 0x60], 0
je 0x42138a
call fcn.004118e0
jmp 0x4213bc
mov dword [esp + 0x10], 0
jmp 0x4214d4
mov eax, dword [edx + 0x28]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4213cc
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x4213b7
call fcn.00413410
jmp 0x4213bc
call fcn.00413340
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
test eax, eax
je 0x4214d4
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x421428
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 + 0x34]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0040d5a0
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
push 0x53d0b4
push 0x10ab1
push 0x53d048
push 0x53d02c
push 0xb
call fcn.00407720
mov eax, 0xb
add esp, 0x14
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x421428
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov dword [eax + 0x88], edx
mov esi, dword [eax + 0x3c]
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 + 0x34]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push 1
mov edx, edi
call fcn.00417290
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x421507
test esi, esi
je 0x4216cd
mov edx, dword [esi + 0x48]
jmp 0x421473
cmp byte [ebx + 9], 0
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], eax
je 0x421528
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x421528
mov ecx, ebx
call fcn.00416d50
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x42155d
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x42155d
cmp dword [edx + 0x60], 0
je 0x421553
call fcn.004118e0
jmp 0x421582
mov dword [esp + 0xc], 0
jmp 0x42158a
mov eax, dword [edx + 0x28]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x421595
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x42157d
call fcn.00413410
jmp 0x421582
call fcn.00413340
mov dword [esp + 0xc], eax
test eax, eax
jne 0x421595
mov ecx, dword [esp + 0x28]
mov eax, edi
bswap eax
mov dword [ecx + 0x34], eax
cmp byte [ebx + 9], 0
je 0x4215a8
add dword [ebx + 0xc], 0xffffffff
jne 0x4215a8
mov ecx, ebx
call fcn.00416d10
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x421656
test esi, esi
je 0x421619
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x421612
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
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0040d5a0
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x2c]
mov ecx, edi
push 1
push eax
lea edx, [esp + 0x28]
call fcn.0041c9e0
add esp, 0xc
test eax, eax
jne 0x4216cd
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
jmp 0x42165a
mov ebx, dword [esp + 0x14]
test byte [ebp + 8], 1
mov eax, 0xa
mov edx, 0xd
mov ecx, esi
cmove edx, eax
call fcn.00418580
mov edx, dword [esi + 0x48]
test edx, edx
je 0x4216c5
test byte [edx + 0x1c], 0x20
je 0x4216be
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 0x4216c5
mov ecx, edx
call fcn.0040d5a0
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret