Function at 0x422410
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 0x42242f
push eax
call dword [0x69d83c]
add esp, 4
mov eax, dword [edi + 0x18]
cmp byte [eax + 9], 0
je 0x42244a
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x42244a
push eax
call fcn.0042a2a0
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x422461
mov eax, dword [eax + 0xc]
test eax, eax
je 0x422461
push eax
call dword [0x69d83c]
add esp, 4
mov ebx, dword [edi + 0x1c]
test ebx, ebx
je 0x422476
cmp ebx, 5
je 0x422476
cmp ebx, 6
jne 0x422c93
cmp dword [edi], 0
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 4]
push esi
mov dword [ebp - 0x30], 0
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
je 0x4224a9
cmp byte [ecx + 0x14], 2
jne 0x4224a9
mov ebx, 5
jmp 0x42252a
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jne 0x42250d
push 2
push edx
call fcn.004495a0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x42252a
mov esi, dword [edi + 4]
mov dword [edi + 0xc], 1
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
cmp byte [esi + 9], bl
je 0x4224ea
inc dword [esi + 0xc]
cmp byte [esi + 0xa], bl
jne 0x4224ea
push esi
call fcn.0042a2a0
mov eax, dword [ebp - 0x2c]
add esp, 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x28]
bswap eax
mov dword [edi + 8], eax
cmp byte [esi + 9], 0
je 0x42250d
add dword [esi + 0xc], 0xffffffff
jne 0x42250d
push esi
call fcn.0047ea20
add esp, 4
mov eax, dword [edi + 0x18]
cmp byte [eax + 8], 0
jne 0x42252a
push 0
push eax
call fcn.004495a0
add esp, 8
mov dword [ebp - 0x30], 1
mov ebx, eax
mov eax, dword [edi + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [edi + 4]
mov esi, dword [edx + 0x20]
mov eax, dword [eax + 4]
mov dword [ebp - 8], esi
mov ecx, dword [eax + 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x14], ecx
movzx eax, byte [eax + 5]
mov dword [ebp - 0x24], eax
test ebx, ebx
jne 0x42255e
cmp eax, 5
jne 0x42255e
cmp esi, ecx
mov eax, 8
cmovne ebx, eax
mov edx, dword [edx + 0x2c]
xor eax, eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
test ecx, ecx
js 0x422574
cmp eax, ecx
jge 0x4225da
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x28], esi
cmp esi, edx
ja 0x4225da
test ebx, ebx
jne 0x422615
mov eax, dword [edi + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x69da78]
div dword [ecx + 0x20]
inc eax
cmp esi, eax
je 0x4225ce
push 2
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x20]
call fcn.0045e0b0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4225ce
mov esi, dword [ebp - 0x2c]
push eax
push dword [esi + 4]
push dword [ebp - 0x28]
push edi
call fcn.004275d0
push esi
mov ebx, eax
call fcn.0045fb00
add esp, 0x14
mov eax, dword [ebp - 0x18]
inc dword [edi + 0x10]
inc eax
mov edx, dword [ebp - 4]
jmp 0x422566
test ebx, ebx
jne 0x422615
mov eax, edx
mov dword [edi + 0x24], edx
sub eax, dword [edi + 0x10]
inc eax
mov dword [edi + 0x20], eax
cmp dword [edi + 0x10], edx
ja 0x42261e
cmp dword [edi + 0x28], ebx
jne 0x4229f3
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 0x4229f3
cmp ebx, 0x65
jne 0x4229f3
test edx, edx
jne 0x42267c
mov esi, dword [edi + 4]
cmp byte [esi + 9], dl
je 0x42263b
inc dword [esi + 0xc]
cmp byte [esi + 0xa], dl
jne 0x42263b
push esi
call fcn.0042a2a0
add esp, 4
mov eax, dword [esi + 4]
mov dword [eax + 0x2c], 0
push dword [esi + 4]
call fcn.0043c070
add esp, 4
mov ebx, eax
cmp byte [esi + 9], 0
je 0x422667
add dword [esi + 0xc], 0xffffffff
jne 0x422667
push esi
call fcn.0047ea20
add esp, 4
mov esi, 1
mov dword [ebp - 4], esi
test ebx, ebx
je 0x42267c
cmp ebx, 0x65
jne 0x422728
mov esi, dword [edi + 4]
mov eax, dword [edi + 8]
inc eax
mov dword [ebp - 0x2c], eax
cmp byte [esi + 9], 0
mov ebx, dword [esi + 4]
je 0x4226a1
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4226a1
push esi
call fcn.0042a2a0
add esp, 4
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + 0x48]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x28], ecx
test byte [ebx + 0x18], 4
mov ecx, dword [ebx + 0x10]
je 0x4226e1
mov eax, dword [ecx + 0x18]
cmp eax, dword [ebx + 0x14]
jb 0x4226e1
cmp dword [ecx + 0x60], 0
je 0x4226dd
push ebx
call fcn.0047e060
add esp, 4
test eax, eax
je 0x4226d9
push ebx
call fcn.0047e160
jmp 0x4226fc
xor ebx, ebx
jmp 0x422701
xor ebx, ebx
jmp 0x422705
mov eax, dword [ecx + 0x94]
push ebx
cmp eax, dword [ecx + 0x98]
jbe 0x4226f7
call fcn.0043dc40
jmp 0x4226fc
call fcn.0043ee10
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x422710
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
bswap eax
mov dword [ecx + 0x28], eax
cmp byte [esi + 9], 0
je 0x422725
add dword [esi + 0xc], 0xffffffff
jne 0x422725
push esi
call fcn.0047ea20
add esp, 4
mov esi, dword [ebp - 4]
test ebx, ebx
jne 0x4229f3
mov eax, dword [edi]
test eax, eax
je 0x42273f
push eax
call fcn.00463a50
add esp, 4
cmp dword [ebp - 0x24], 5
jne 0x4227ce
mov ecx, dword [edi + 4]
mov edx, 0xffef
push 0
push ecx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
and word [eax + 0x16], dx
call fcn.004495a0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4227ba
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x28], eax
cmp byte [eax + 0x12], 2
jne 0x422787
cmp byte [eax + 0x13], 2
je 0x4227ba
push 2
push dword [ebp - 0x2c]
call fcn.004495a0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4227ba
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
push dword [eax + 0x48]
call fcn.0045fbb0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4227ba
mov eax, dword [ebp - 0x28]
mov word [eax + 0x12], 0x202
mov eax, dword [ebp - 0x10]
mov ecx, 0xffef
and word [eax + 0x16], cx
test ebx, ebx
jne 0x4229f3
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
cmp eax, ecx
jge 0x422810
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 [0x69da78]
div dword [ecx + 0x20]
lea ecx, [esi - 1]
inc eax
cmp esi, eax
mov eax, dword [ebp - 4]
cmovne ecx, esi
mov dword [ebp - 0x2c], ecx
mov esi, ecx
mov ecx, dword [ebp - 0x14]
jmp 0x42281b
cdq
idiv ecx
mov esi, eax
mov eax, dword [ebp - 4]
imul esi, eax
mov edx, dword [ebp - 8]
cmp edx, ecx
jge 0x422b0b
imul edx
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [edx + 0x3c]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
nop dword [eax]
cmp esi, eax
ja 0x422898
mov eax, dword [edi + 4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x69da78]
div dword [ecx + 0x20]
inc eax
cmp esi, eax
je 0x42288e
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0xc]
call fcn.0045e0b0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x42288e
push dword [ebp - 0x18]
call fcn.0045fbb0
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42288e
push eax
call fcn.0045fb00
add esp, 4
mov eax, dword [ebp - 0x24]
inc esi
test ebx, ebx
je 0x422840
jmp 0x4228ac
test ebx, ebx
jne 0x4228ac
push 1
push ebx
push dword [ebp - 0xc]
call fcn.0045e7c0
add esp, 0xc
mov ebx, eax
mov eax, dword [0x69da78]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
cdq
mov esi, eax
mov eax, edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], eax
cmp eax, ecx
jg 0x4228d1
jl 0x4228dc
mov eax, dword [ebp - 4]
cmp esi, eax
jae 0x4228d4
jmp 0x4228dc
mov eax, dword [ebp - 4]
mov esi, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x69da78]
add eax, dword [ebp - 8]
cdq
mov dword [ebp - 0x18], edx
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ebx, ebx
jne 0x4229f3
mov edi, edx
cmp edi, dword [ebp - 0x1c]
jg 0x422a75
jl 0x42290a
cmp ecx, esi
jae 0x422a75
mov esi, dword [ebp - 8]
lea ebx, [ebp - 0x14]
push 0
push ebx
mov eax, esi
mov dword [ebp - 0x14], 0
cdq
push edx
push eax
push edi
push ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
call fcn.00605e50
inc eax
push eax
push dword [ebp - 0x20]
call fcn.0045e0b0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x42295a
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
mov eax, dword [edx]
push esi
push dword [ecx + 4]
mov eax, dword [eax + 0xc]
push edx
call eax
add esp, 0x14
mov ebx, eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4229d6
test byte [ecx + 0x18], 0x40
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x14], esi
je 0x4229b2
dec dword [esi + 0x78]
mov eax, dword [esi + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov eax, dword [eax + 0x98]
dec ecx
mov esi, dword [esi + 0x3c]
cdq
push edx
push eax
mov edi, dword [esi]
push 0
push ecx
call fcn.00605a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp - 0x14]
add esp, 0x10
mov edi, dword [ebp - 0x18]
jmp 0x4229bb
push ecx
call fcn.004607d0
add esp, 4
cmp dword [esi + 0x78], 0
jne 0x4229d6
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x4229d6
push esi
call fcn.0043dae0
add esp, 4
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x24]
adc edi, dword [ebp - 0x38]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], edi
test ebx, ebx
je 0x4228f7
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x30], 0
je 0x422c81
push 0
push dword [edi + 0x18]
call fcn.00449b80
mov esi, dword [edi + 0x18]
add esp, 8
cmp byte [esi + 8], 0
je 0x422c81
cmp byte [esi + 9], 0
je 0x422a2f
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x422a2f
push esi
call fcn.0042a2a0
add esp, 4
cmp byte [esi + 8], 2
jne 0x422c63
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov edx, dword [ecx + 0x28]
test edx, edx
jne 0x422c6c
cmp byte [ecx + 0x10], 2
jne 0x422c14
cmp byte [ecx + 4], dl
je 0x422c14
cmp byte [ecx + 5], 1
jne 0x422c14
mov byte [ecx + 0x10], 1
jmp 0x422c47
test ebx, ebx
jne 0x4229f0
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push ecx
push esi
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4229f0
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x38], ecx
jl 0x422abc
jg 0x422aab
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x3c], eax
jbe 0x422abc
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 0x4229f0
mov esi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x3c]
cmp dword [ecx], ebx
je 0x422aeb
mov eax, dword [ecx]
push ebx
push 0x15
push ecx
mov eax, dword [eax + 0x28]
call eax
mov ebx, eax
add esp, 0xc
cmp ebx, 0xc
jne 0x422ae7
xor ebx, ebx
jmp 0x422aeb
test ebx, ebx
jne 0x422b06
cmp byte [esi + 7], 0
jne 0x422b06
mov eax, dword [esi + 0x3c]
movzx edx, byte [esi + 0xb]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x14]
call eax
add esp, 8
mov ebx, eax
mov edi, dword [ebp + 8]
jmp 0x422b20
mov eax, dword [ebp - 0xc]
push 0
push 0
push eax
mov dword [eax + 0x18], esi
call fcn.0045e7c0
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x4229f3
mov esi, dword [edi + 4]
cmp byte [esi + 8], bl
je 0x422bb5
cmp byte [esi + 9], bl
je 0x422b4a
inc dword [esi + 0xc]
cmp byte [esi + 0xa], bl
jne 0x422b4a
push esi
call fcn.0042a2a0
add esp, 4
cmp byte [esi + 8], 2
jne 0x422b97
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov ebx, dword [ecx + 0x28]
test ebx, ebx
jne 0x422bf2
cmp byte [ecx + 0x10], 2
jne 0x422bbf
cmp byte [ecx + 4], bl
je 0x422bbf
cmp byte [ecx + 5], 1
jne 0x422bbf
mov byte [ecx + 0x10], 1
dec dword [esi + 0x14]
push dword [eax + 0x3c]
mov byte [eax + 0x14], 1
call fcn.00449190
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x3c], 0
push esi
call fcn.00429cd0
add esp, 4
cmp byte [esi + 9], 0
je 0x422bb5
add dword [esi + 0xc], 0xffffffff
jne 0x422bb5
push esi
call fcn.0047ea20
add esp, 4
mov ebx, 0x65
jmp 0x4229f3
movzx eax, byte [ecx + 0x13]
inc dword [ecx + 0x64]
push 1
push eax
push ecx
call fcn.0043e150
mov ebx, eax
add esp, 0xc
movzx eax, bl
cmp eax, 0xd
je 0x422be1
cmp eax, 0xa
jne 0x422beb
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x28], ebx
mov byte [eax + 0x10], 6
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x422b7b
cmp byte [esi + 9], 0
je 0x4229f3
add dword [esi + 0xc], 0xffffffff
jne 0x4229f3
push esi
call fcn.0047ea20
add esp, 4
jmp 0x4229f3
movzx eax, byte [ecx + 0x13]
inc dword [ecx + 0x64]
push 1
push eax
push ecx
call fcn.0043e150
mov edx, eax
add esp, 0xc
movzx eax, dl
cmp eax, 0xd
je 0x422c36
cmp eax, 0xa
jne 0x422c40
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x28], edx
mov byte [eax + 0x10], 6
mov eax, dword [ebp + 8]
test edx, edx
jne 0x422c6c
dec dword [esi + 0x14]
push dword [eax + 0x3c]
mov byte [eax + 0x14], 1
call fcn.00449190
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x3c], 0
push esi
call fcn.00429cd0
add esp, 4
cmp byte [esi + 9], 0
je 0x422c81
add dword [esi + 0xc], 0xffffffff
jne 0x422c81
push esi
call fcn.0047ea20
add esp, 4
cmp ebx, 0xc0a
mov eax, 7
pop esi
cmove ebx, eax
mov dword [edi + 0x1c], ebx
mov eax, dword [edi]
test eax, eax
je 0x422caa
mov eax, dword [eax + 0xc]
test eax, eax
je 0x422caa
push eax
call dword [0x69d844]
add esp, 4
mov eax, dword [edi + 0x18]
cmp byte [eax + 9], 0
je 0x422cc2
add dword [eax + 0xc], 0xffffffff
jne 0x422cc2
push eax
call fcn.0047ea20
add esp, 4
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x422cd6
push eax
call dword [0x69d844]
add esp, 4
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret