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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x42105f
push eax
call dword [0x4d7c40]
add esp, 4
mov eax, dword [edi + 0x18]
cmp byte [eax + 9], 0
je 0x42107a
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x42107a
push eax
call fcn.00428850
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x421091
mov eax, dword [eax + 0xc]
test eax, eax
je 0x421091
push eax
call dword [0x4d7c40]
add esp, 4
mov ebx, dword [edi + 0x1c]
test ebx, ebx
je 0x4210a6
cmp ebx, 5
je 0x4210a6
cmp ebx, 6
jne 0x421759
cmp dword [edi], 0
mov ecx, dword [edi + 0x18]
push esi
mov edx, dword [ecx + 4]
mov dword [ebp - 8], ecx
mov eax, dword [edx]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x3c], 0
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
je 0x4210dc
cmp byte [edx + 0x14], 2
jne 0x4210dc
mov ebx, 5
jmp 0x421271
xor ebx, ebx
test ecx, ecx
je 0x4210ee
movzx eax, byte [ecx + 8]
test eax, eax
jne 0x421271
mov esi, edx
xor ebx, ebx
mov edx, dword [esi]
mov dword [ebp - 0x3c], edx
cmp byte [ecx + 9], bl
je 0x421113
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], bl
jne 0x421113
push ecx
call fcn.00428850
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x3c]
add esp, 4
mov al, byte [ecx + 8]
cmp al, 2
je 0x421256
cmp al, 1
je 0x421256
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x2000000
or eax, 0
je 0x421143
cmp byte [edx + 0xe], bl
jne 0x421143
mov eax, 0xfffe
and word [esi + 0x18], ax
test byte [esi + 0x18], 0x80
je 0x42115a
mov eax, dword [esi + 0x50]
cmp dword [eax], ebx
je 0x42115a
mov ebx, 0x106
jmp 0x421256
push 1
push 1
push ecx
call fcn.00443590
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x421253
mov eax, 0xffef
and word [esi + 0x18], ax
cmp dword [esi + 0x30], ebx
jne 0x421184
or word [esi + 0x18], 0x10
cmp dword [esi + 0xc], 0
jne 0x42119b
push esi
call fcn.0043a230
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x421184
jmp 0x42119f
test ebx, ebx
je 0x4211dd
cmp byte [esi + 0x14], 0
jne 0x4211dd
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4211dd
mov dword [esi + 0xc], 0
mov eax, dword [eax + 0x48]
push eax
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x3c], ecx
call fcn.00468980
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov eax, dword [ecx + 0xd4]
cmp dword [eax + 0xc], 0
jne 0x4211dd
push ecx
call fcn.0043f630
add esp, 4
cmp bl, 5
jne 0x42121f
cmp byte [esi + 0x14], 0
jne 0x42121f
mov eax, dword [esi + 4]
add eax, 0x1ac
mov dword [ebp - 0x1c], eax
mov edx, dword [eax]
test edx, edx
je 0x42121f
mov ecx, dword [eax + 8]
test ecx, ecx
js 0x42121f
push ecx
push dword [eax + 4]
call edx
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x1c]
je 0x421218
inc dword [eax + 8]
jmp 0x421184
mov dword [eax + 8], 0xffffffff
mov ecx, dword [ebp - 8]
test ebx, ebx
jne 0x421256
cmp byte [ecx + 8], bl
jne 0x421243
inc dword [esi + 0x2c]
cmp byte [ecx + 9], bl
je 0x421243
mov byte [ecx + 0x28], 1
mov eax, dword [esi + 0x4c]
mov dword [ecx + 0x2c], eax
lea eax, [ecx + 0x20]
mov dword [esi + 0x4c], eax
mov byte [ecx + 8], 1
cmp byte [esi + 0x14], 1
jae 0x421256
mov byte [esi + 0x14], 1
jmp 0x421256
mov ecx, dword [ebp - 8]
cmp byte [ecx + 9], 0
je 0x42126a
dec dword [ecx + 0xc]
jne 0x42126a
push ecx
call fcn.0048d8e0
add esp, 4
mov dword [ebp - 0x3c], 1
cmp dword [edi + 0xc], 0
jne 0x42129a
test ebx, ebx
jne 0x4212c2
mov eax, dword [edi + 0x18]
push ebx
mov eax, dword [eax + 4]
push ebx
push dword [eax + 0x24]
push dword [edi + 4]
call fcn.004509b0
add esp, 0x10
cmp eax, 7
jne 0x42129e
mov ebx, eax
jmp 0x4212c2
test ebx, ebx
jne 0x4212c2
cmp dword [edi + 0xc], 0
jne 0x4212c2
lea eax, [edi + 8]
push eax
push 2
push dword [edi + 4]
call fcn.0044da60
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4212c2
mov dword [edi + 0xc], 1
mov eax, dword [edi + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [edi + 4]
mov esi, dword [edx + 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 8], esi
mov ecx, dword [eax + 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x10], ecx
movzx eax, byte [eax + 5]
mov dword [ebp - 0x2c], eax
test ebx, ebx
jne 0x4212f6
cmp eax, 5
jne 0x4212f6
mov eax, 8
cmp esi, ecx
cmovne ebx, eax
mov edx, dword [edx + 0x30]
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
test ecx, ecx
js 0x42130c
cmp eax, ecx
jge 0x42137b
mov esi, dword [edi + 0x10]
cmp esi, edx
ja 0x42137b
test ebx, ebx
jne 0x4213b6
mov eax, dword [edi + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x4d7bec]
div dword [ecx + 0x24]
inc eax
cmp esi, eax
je 0x42136f
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push esi
push eax
mov eax, dword [eax + 0xcc]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x42136f
mov eax, dword [ebp - 0x1c]
push ebx
push dword [eax + 4]
push esi
push edi
call fcn.004257b0
mov ebx, eax
mov eax, dword [ebp - 0x1c]
add esp, 0x10
test eax, eax
je 0x42136f
push eax
call fcn.00467ab0
add esp, 4
mov eax, dword [ebp - 0x18]
inc dword [edi + 0x10]
mov edx, dword [ebp - 4]
inc eax
jmp 0x4212fe
test ebx, ebx
jne 0x4213b6
mov eax, edx
sub eax, dword [edi + 0x10]
mov dword [edi + 0x24], edx
inc eax
mov dword [edi + 0x20], eax
cmp dword [edi + 0x10], edx
ja 0x4213bf
cmp dword [edi + 0x28], ebx
jne 0x4216b9
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
mov dword [edi + 0x2c], eax
mov dword [ecx + 0x58], edi
mov dword [edi + 0x28], 1
jmp 0x4216b9
cmp ebx, 0x65
jne 0x4216b9
test edx, edx
jne 0x421418
mov esi, dword [edi + 4]
cmp byte [esi + 9], dl
je 0x4213dc
inc dword [esi + 0xc]
cmp byte [esi + 0xa], dl
jne 0x4213dc
push esi
call fcn.00428850
add esp, 4
mov eax, dword [esi + 4]
mov dword [eax + 0x30], 0
push dword [esi + 4]
call fcn.0043d850
add esp, 4
cmp byte [esi + 9], 0
mov ebx, eax
je 0x421407
dec dword [esi + 0xc]
jne 0x421407
push esi
call fcn.0048d8e0
add esp, 4
mov esi, 1
mov dword [ebp - 4], esi
test ebx, ebx
je 0x421418
cmp ebx, 0x65
jne 0x421479
mov esi, dword [edi + 4]
mov eax, dword [edi + 8]
mov ebx, dword [esi + 4]
inc eax
cmp byte [esi + 9], 0
mov dword [ebp - 0x38], eax
je 0x42143d
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x42143d
push esi
call fcn.00428850
add esp, 4
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x38]
push dword [eax + 0x48]
mov dword [ebp - 0x30], ecx
call fcn.00467b40
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x421462
mov eax, dword [ebp - 0x38]
bswap eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x28], eax
cmp byte [esi + 9], 0
je 0x421476
dec dword [esi + 0xc]
jne 0x421476
push esi
call fcn.0048d8e0
add esp, 4
mov esi, dword [ebp - 4]
test ebx, ebx
jne 0x4216b9
mov eax, dword [edi]
test eax, eax
je 0x421490
push eax
call fcn.0046c3b0
add esp, 4
cmp dword [ebp - 0x2c], 5
jne 0x4214ad
push 2
push dword [edi + 4]
call fcn.00450b40
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4216b9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
cmp eax, ecx
jge 0x4214e4
mov eax, ecx
cdq
idiv dword [ebp - 8]
mov ecx, eax
lea eax, [ecx - 1]
add eax, esi
cdq
idiv ecx
xor edx, edx
mov esi, eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [0x4d7bec]
div dword [ecx + 0x24]
mov ecx, dword [ebp - 4]
inc eax
cmp esi, eax
jne 0x4214ef
dec esi
jmp 0x4214ef
cdq
idiv ecx
mov ecx, dword [ebp - 4]
mov esi, eax
imul esi, ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jge 0x421844
cdq
mov dword [ebp - 0x18], edx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
mov eax, ecx
cdq
push edx
push eax
call fcn.004a7fd0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], edx
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
cmp esi, eax
ja 0x421583
mov eax, dword [edi + 4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x4d7bec]
div dword [ecx + 0x24]
inc eax
cmp esi, eax
je 0x421579
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push esi
push eax
mov eax, dword [eax + 0xcc]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x421579
push dword [ebp - 0x1c]
call fcn.00467b40
mov ebx, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
test eax, eax
je 0x421579
push eax
call fcn.00467ab0
add esp, 4
mov eax, dword [ebp - 0x2c]
inc esi
test ebx, ebx
je 0x421527
jmp 0x421598
test ebx, ebx
jne 0x421598
mov eax, dword [ebp - 0xc]
push 1
push ebx
push eax
call fcn.004667a0
add esp, 0xc
mov ebx, eax
mov eax, dword [0x4d7bec]
add eax, dword [ebp - 0x10]
cdq
mov ecx, eax
mov eax, edx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], eax
cmp eax, edx
jg 0x4215bd
jl 0x4215c8
mov eax, dword [ebp - 4]
cmp ecx, eax
jae 0x4215c0
jmp 0x4215c8
mov eax, dword [ebp - 4]
mov ecx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], edx
mov eax, dword [0x4d7bec]
add eax, dword [ebp - 8]
cdq
mov esi, eax
mov dword [ebp - 0x28], eax
mov eax, edx
mov dword [ebp - 0x1c], edx
test ebx, ebx
jne 0x4216b9
cmp eax, dword [ebp - 0x20]
jg 0x4217a3
jl 0x4215f6
cmp esi, ecx
jae 0x4217a3
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
push dword [ebp - 0x14]
push eax
push esi
call fcn.004a7e40
inc eax
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [eax + 0xcc]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x421644
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
push esi
push dword [ebp - 8]
mov ecx, dword [edx]
push dword [eax + 4]
mov eax, dword [ecx + 0xc]
push edx
call eax
add esp, 0x14
mov ebx, eax
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x42169c
test byte [edx + 0x1c], 0x20
je 0x421693
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]
mov edi, dword [esi]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004a7fd0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp - 0x28]
add esp, 0x10
jmp 0x42169c
push edx
call fcn.00468980
add esp, 4
add esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
adc eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x4215e3
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x3c], 0
je 0x421747
push 0
push dword [edi + 0x18]
call fcn.0044e060
mov esi, dword [edi + 0x18]
add esp, 8
cmp byte [esi + 8], 0
je 0x421747
cmp byte [esi + 9], 0
je 0x4216f1
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4216f1
push esi
call fcn.00428850
add esp, 4
cmp byte [esi + 8], 2
jne 0x42172a
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
push dword [eax]
call fcn.00466950
add esp, 4
test eax, eax
jne 0x421733
mov eax, dword [ebp + 8]
dec dword [esi + 0x14]
push dword [eax + 0x40]
mov byte [eax + 0x14], 1
call fcn.0044d5c0
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x40], 0
push esi
call fcn.004283f0
add esp, 4
cmp byte [esi + 9], 0
je 0x421747
dec dword [esi + 0xc]
jne 0x421747
push esi
call fcn.0048d8e0
add esp, 4
mov eax, 7
cmp ebx, 0xc0a
cmove ebx, eax
mov dword [edi + 0x1c], ebx
pop esi
mov eax, dword [edi]
test eax, eax
je 0x421770
mov eax, dword [eax + 0xc]
test eax, eax
je 0x421770
push eax
call dword [0x4d7c48]
add esp, 4
mov eax, dword [edi + 0x18]
cmp byte [eax + 9], 0
je 0x421787
dec dword [eax + 0xc]
jne 0x421787
push eax
call fcn.0048d8e0
add esp, 4
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x42179b
push eax
call dword [0x4d7c48]
add esp, 4
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x4216b6
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
mov eax, dword [esi]
push ecx
mov eax, dword [eax + 0x18]
push esi
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4216b6
mov ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x30], ecx
jl 0x4217ea
jg 0x4217d9
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x34], eax
jbe 0x4217ea
mov eax, dword [esi]
push ecx
push dword [ebp - 4]
mov eax, dword [eax + 0x10]
push esi
call eax
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x4216b6
mov esi, dword [ebp - 0xc]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
je 0x421817
push ebx
push 0x15
push eax
mov eax, dword [ecx + 0x28]
call eax
mov ebx, eax
add esp, 0xc
cmp ebx, 0xc
je 0x421817
test ebx, ebx
jne 0x42183f
jmp 0x421819
xor ebx, ebx
cmp byte [esi + 7], 0
jne 0x42183f
movzx ecx, byte [esi + 0xa]
mov edx, dword [esi + 0x3c]
test ecx, ecx
je 0x42183d
mov eax, dword [edx]
push ecx
mov eax, dword [eax + 0x14]
push edx
call eax
mov edi, dword [ebp + 8]
add esp, 8
mov ebx, eax
jmp 0x421859
xor ebx, ebx
mov edi, dword [ebp + 8]
jmp 0x421859
mov eax, dword [ebp - 0xc]
push 0
push 0
push eax
mov dword [eax + 0x18], esi
call fcn.004667a0
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x4216b9
mov esi, dword [edi + 4]
cmp byte [esi + 8], bl
je 0x4218f9
cmp byte [esi + 9], bl
je 0x421883
inc dword [esi + 0xc]
cmp byte [esi + 0xa], bl
jne 0x421883
push esi
call fcn.00428850
add esp, 4
cmp byte [esi + 8], 2
jne 0x4218dc
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
push dword [eax]
call fcn.00466950
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4218c0
cmp byte [esi + 9], 0
je 0x4216b9
dec dword [esi + 0xc]
jne 0x4216b9
push esi
call fcn.0048d8e0
add esp, 4
jmp 0x4216b9
mov ebx, dword [ebp + 8]
dec dword [esi + 0x14]
push dword [ebx + 0x40]
mov byte [ebx + 0x14], 1
call fcn.0044d5c0
add esp, 4
mov dword [ebx + 0x40], 0
push esi
call fcn.004283f0
add esp, 4
cmp byte [esi + 9], 0
je 0x4218f9
dec dword [esi + 0xc]
jne 0x4218f9
push esi
call fcn.0048d8e0
add esp, 4
mov ebx, 0x65
jmp 0x4216b9