Function at 0x420d10
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 0x420d2f
push eax
call dword [0x4d9c60]
add esp, 4
mov eax, dword [edi + 0x18]
cmp byte [eax + 9], 0
je 0x420d4a
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x420d4a
push eax
call fcn.00428500
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x420d61
mov eax, dword [eax + 0xc]
test eax, eax
je 0x420d61
push eax
call dword [0x4d9c60]
add esp, 4
mov ebx, dword [edi + 0x1c]
test ebx, ebx
je 0x420d76
cmp ebx, 5
je 0x420d76
cmp ebx, 6
jne 0x421429
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 0x420dac
cmp byte [edx + 0x14], 2
jne 0x420dac
mov ebx, 5
jmp 0x420f41
xor ebx, ebx
test ecx, ecx
je 0x420dbe
movzx eax, byte [ecx + 8]
test eax, eax
jne 0x420f41
mov esi, edx
xor ebx, ebx
mov edx, dword [esi]
mov dword [ebp - 0x3c], edx
cmp byte [ecx + 9], bl
je 0x420de3
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], bl
jne 0x420de3
push ecx
call fcn.00428500
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x3c]
add esp, 4
mov al, byte [ecx + 8]
cmp al, 2
je 0x420f26
cmp al, 1
je 0x420f26
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x2000000
or eax, 0
je 0x420e13
cmp byte [edx + 0xe], bl
jne 0x420e13
mov eax, 0xfffe
and word [esi + 0x18], ax
test byte [esi + 0x18], 0x80
je 0x420e2a
mov eax, dword [esi + 0x50]
cmp dword [eax], ebx
je 0x420e2a
mov ebx, 0x106
jmp 0x420f26
push 1
push 1
push ecx
call fcn.00443240
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x420f23
mov eax, 0xffef
and word [esi + 0x18], ax
cmp dword [esi + 0x30], ebx
jne 0x420e54
or word [esi + 0x18], 0x10
cmp dword [esi + 0xc], 0
jne 0x420e6b
push esi
call fcn.00439ee0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x420e54
jmp 0x420e6f
test ebx, ebx
je 0x420ead
cmp byte [esi + 0x14], 0
jne 0x420ead
mov eax, dword [esi + 0xc]
test eax, eax
je 0x420ead
mov dword [esi + 0xc], 0
mov eax, dword [eax + 0x48]
push eax
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x3c], ecx
call fcn.00468660
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov eax, dword [ecx + 0xd4]
cmp dword [eax + 0xc], 0
jne 0x420ead
push ecx
call fcn.0043f2e0
add esp, 4
cmp bl, 5
jne 0x420eef
cmp byte [esi + 0x14], 0
jne 0x420eef
mov eax, dword [esi + 4]
add eax, 0x1ac
mov dword [ebp - 0x1c], eax
mov edx, dword [eax]
test edx, edx
je 0x420eef
mov ecx, dword [eax + 8]
test ecx, ecx
js 0x420eef
push ecx
push dword [eax + 4]
call edx
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x1c]
je 0x420ee8
inc dword [eax + 8]
jmp 0x420e54
mov dword [eax + 8], 0xffffffff
mov ecx, dword [ebp - 8]
test ebx, ebx
jne 0x420f26
cmp byte [ecx + 8], bl
jne 0x420f13
inc dword [esi + 0x2c]
cmp byte [ecx + 9], bl
je 0x420f13
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 0x420f26
mov byte [esi + 0x14], 1
jmp 0x420f26
mov ecx, dword [ebp - 8]
cmp byte [ecx + 9], 0
je 0x420f3a
dec dword [ecx + 0xc]
jne 0x420f3a
push ecx
call fcn.0048d5f0
add esp, 4
mov dword [ebp - 0x3c], 1
cmp dword [edi + 0xc], 0
jne 0x420f6a
test ebx, ebx
jne 0x420f92
mov eax, dword [edi + 0x18]
push ebx
mov eax, dword [eax + 4]
push ebx
push dword [eax + 0x24]
push dword [edi + 4]
call fcn.00450660
add esp, 0x10
cmp eax, 7
jne 0x420f6e
mov ebx, eax
jmp 0x420f92
test ebx, ebx
jne 0x420f92
cmp dword [edi + 0xc], 0
jne 0x420f92
lea eax, [edi + 8]
push eax
push 2
push dword [edi + 4]
call fcn.0044d710
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x420f92
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 0x420fc6
cmp eax, 5
jne 0x420fc6
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 0x420fdc
cmp eax, ecx
jge 0x42104b
mov esi, dword [edi + 0x10]
cmp esi, edx
ja 0x42104b
test ebx, ebx
jne 0x421086
mov eax, dword [edi + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x4d9c0c]
div dword [ecx + 0x24]
inc eax
cmp esi, eax
je 0x42103f
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 0x42103f
mov eax, dword [ebp - 0x1c]
push ebx
push dword [eax + 4]
push esi
push edi
call fcn.00425460
mov ebx, eax
mov eax, dword [ebp - 0x1c]
add esp, 0x10
test eax, eax
je 0x42103f
push eax
call fcn.00467790
add esp, 4
mov eax, dword [ebp - 0x18]
inc dword [edi + 0x10]
mov edx, dword [ebp - 4]
inc eax
jmp 0x420fce
test ebx, ebx
jne 0x421086
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 0x42108f
cmp dword [edi + 0x28], ebx
jne 0x421389
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 0x421389
cmp ebx, 0x65
jne 0x421389
test edx, edx
jne 0x4210e8
mov esi, dword [edi + 4]
cmp byte [esi + 9], dl
je 0x4210ac
inc dword [esi + 0xc]
cmp byte [esi + 0xa], dl
jne 0x4210ac
push esi
call fcn.00428500
add esp, 4
mov eax, dword [esi + 4]
mov dword [eax + 0x30], 0
push dword [esi + 4]
call fcn.0043d500
add esp, 4
cmp byte [esi + 9], 0
mov ebx, eax
je 0x4210d7
dec dword [esi + 0xc]
jne 0x4210d7
push esi
call fcn.0048d5f0
add esp, 4
mov esi, 1
mov dword [ebp - 4], esi
test ebx, ebx
je 0x4210e8
cmp ebx, 0x65
jne 0x421149
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 0x42110d
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x42110d
push esi
call fcn.00428500
add esp, 4
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x38]
push dword [eax + 0x48]
mov dword [ebp - 0x30], ecx
call fcn.00467820
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x421132
mov eax, dword [ebp - 0x38]
bswap eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x28], eax
cmp byte [esi + 9], 0
je 0x421146
dec dword [esi + 0xc]
jne 0x421146
push esi
call fcn.0048d5f0
add esp, 4
mov esi, dword [ebp - 4]
test ebx, ebx
jne 0x421389
mov eax, dword [edi]
test eax, eax
je 0x421160
push eax
call fcn.0046c090
add esp, 4
cmp dword [ebp - 0x2c], 5
jne 0x42117d
push 2
push dword [edi + 4]
call fcn.004507f0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x421389
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
cmp eax, ecx
jge 0x4211b4
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 [0x4d9c0c]
div dword [ecx + 0x24]
mov ecx, dword [ebp - 4]
inc eax
cmp esi, eax
jne 0x4211bf
dec esi
jmp 0x4211bf
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 0x421514
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.004a95a0
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 0x421253
mov eax, dword [edi + 4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x4d9c0c]
div dword [ecx + 0x24]
inc eax
cmp esi, eax
je 0x421249
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 0x421249
push dword [ebp - 0x1c]
call fcn.00467820
mov ebx, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
test eax, eax
je 0x421249
push eax
call fcn.00467790
add esp, 4
mov eax, dword [ebp - 0x2c]
inc esi
test ebx, ebx
je 0x4211f7
jmp 0x421268
test ebx, ebx
jne 0x421268
mov eax, dword [ebp - 0xc]
push 1
push ebx
push eax
call fcn.00466480
add esp, 0xc
mov ebx, eax
mov eax, dword [0x4d9c0c]
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 0x42128d
jl 0x421298
mov eax, dword [ebp - 4]
cmp ecx, eax
jae 0x421290
jmp 0x421298
mov eax, dword [ebp - 4]
mov ecx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], edx
mov eax, dword [0x4d9c0c]
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 0x421389
cmp eax, dword [ebp - 0x20]
jg 0x421473
jl 0x4212c6
cmp esi, ecx
jae 0x421473
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.004a9410
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 0x421314
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 0x42136c
test byte [edx + 0x1c], 0x20
je 0x421363
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.004a95a0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp - 0x28]
add esp, 0x10
jmp 0x42136c
push edx
call fcn.00468660
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 0x4212b3
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x3c], 0
je 0x421417
push 0
push dword [edi + 0x18]
call fcn.0044dd10
mov esi, dword [edi + 0x18]
add esp, 8
cmp byte [esi + 8], 0
je 0x421417
cmp byte [esi + 9], 0
je 0x4213c1
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4213c1
push esi
call fcn.00428500
add esp, 4
cmp byte [esi + 8], 2
jne 0x4213fa
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
push dword [eax]
call fcn.00466630
add esp, 4
test eax, eax
jne 0x421403
mov eax, dword [ebp + 8]
dec dword [esi + 0x14]
push dword [eax + 0x40]
mov byte [eax + 0x14], 1
call fcn.0044d270
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x40], 0
push esi
call fcn.004280a0
add esp, 4
cmp byte [esi + 9], 0
je 0x421417
dec dword [esi + 0xc]
jne 0x421417
push esi
call fcn.0048d5f0
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 0x421440
mov eax, dword [eax + 0xc]
test eax, eax
je 0x421440
push eax
call dword [0x4d9c68]
add esp, 4
mov eax, dword [edi + 0x18]
cmp byte [eax + 9], 0
je 0x421457
dec dword [eax + 0xc]
jne 0x421457
push eax
call fcn.0048d5f0
add esp, 4
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x42146b
push eax
call dword [0x4d9c68]
add esp, 4
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x421386
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 0x421386
mov ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x30], ecx
jl 0x4214ba
jg 0x4214a9
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x34], eax
jbe 0x4214ba
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 0x421386
mov esi, dword [ebp - 0xc]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
je 0x4214e7
push ebx
push 0x15
push eax
mov eax, dword [ecx + 0x28]
call eax
mov ebx, eax
add esp, 0xc
cmp ebx, 0xc
je 0x4214e7
test ebx, ebx
jne 0x42150f
jmp 0x4214e9
xor ebx, ebx
cmp byte [esi + 7], 0
jne 0x42150f
movzx ecx, byte [esi + 0xa]
mov edx, dword [esi + 0x3c]
test ecx, ecx
je 0x42150d
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 0x421529
xor ebx, ebx
mov edi, dword [ebp + 8]
jmp 0x421529
mov eax, dword [ebp - 0xc]
push 0
push 0
push eax
mov dword [eax + 0x18], esi
call fcn.00466480
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x421389
mov esi, dword [edi + 4]
cmp byte [esi + 8], bl
je 0x4215c9
cmp byte [esi + 9], bl
je 0x421553
inc dword [esi + 0xc]
cmp byte [esi + 0xa], bl
jne 0x421553
push esi
call fcn.00428500
add esp, 4
cmp byte [esi + 8], 2
jne 0x4215ac
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
push dword [eax]
call fcn.00466630
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x421590
cmp byte [esi + 9], 0
je 0x421389
dec dword [esi + 0xc]
jne 0x421389
push esi
call fcn.0048d5f0
add esp, 4
jmp 0x421389
mov ebx, dword [ebp + 8]
dec dword [esi + 0x14]
push dword [ebx + 0x40]
mov byte [ebx + 0x14], 1
call fcn.0044d270
add esp, 4
mov dword [ebx + 0x40], 0
push esi
call fcn.004280a0
add esp, 4
cmp byte [esi + 9], 0
je 0x4215c9
dec dword [esi + 0xc]
jne 0x4215c9
push esi
call fcn.0048d5f0
add esp, 4
mov ebx, 0x65
jmp 0x421389