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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5b88c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
cmp eax, 0xa
jl 0x422cc5
mov edx, dword [esi + 0x10]
test edx, edx
je 0x422cc5
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x422cc5
cmp byte [ebp + 8], 0
push ebx
push edi
je 0x422784
cmp byte [esi], 0
je 0x42275a
add ecx, 8
add edx, 2
jmp 0x422769
cmp dword [esi + 0x44], 0x149
jne 0x422766
inc edx
jmp 0x422769
add edx, 5
mov edi, dword [esi + 8]
mov ebx, dword [0x5c86e8]
push eax
push edi
push ebx
push ecx
mov ecx, dword [0x5c86e4]
push edx
push eax
push edi
call fcn.0040ca50
cmp byte [esi], 0
jne 0x422a3c
cmp byte [esi + 0x5b], 0
mov edi, dword [esi + 0x10]
je 0x42279b
sub edi, 0x19
jmp 0x42279e
sub edi, 0xa
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 8]
lea ebx, [eax + 5]
test ecx, ecx
je 0x4227e7
push 1
push 1
push 0
push 0
cmp ecx, 0x96
jne 0x4227cd
mov ecx, dword [esi + 0xc]
sub ecx, 2
push ecx
add eax, 0xfffffff6
push eax
push 0x96
jmp 0x4227d6
mov edx, dword [esi + 0xc]
add edx, 2
push edx
push eax
push ecx
mov ecx, dword [0x5c86e4]
call fcn.0040f3d0
add ebx, 0xf
sub edi, 0x12
mov eax, dword [esi + 0x14]
cdq
sub eax, edx
mov edx, dword [esi + 0xc]
sar eax, 1
lea ecx, [ebx + edi - 0xf]
lea edi, [eax + edx - 4]
lea eax, [ecx + ebx]
cdq
sub eax, edx
sar eax, 1
cmp byte [esi + 0x5a], 0
mov dword [ebp - 0x28], ecx
mov dword [esi + 0x3c], eax
je 0x422861
push 0x32
lea ecx, [edi + 4]
push ecx
mov ecx, dword [0x5c86e4]
lea edx, [edi - 2]
push edx
dec eax
push eax
call fcn.0040e580
mov edx, dword [esi + 0x3c]
push 0x96
lea eax, [edi + 5]
push eax
lea ecx, [edi - 3]
push ecx
mov ecx, dword [0x5c86e4]
push edx
call fcn.0040e580
mov ecx, dword [0x5c86e4]
push 0xdc
lea eax, [edi + 4]
push eax
lea eax, [edi - 2]
push eax
mov eax, dword [esi + 0x3c]
inc eax
push eax
call fcn.0040e580
mov ecx, dword [ebp - 0x28]
cmp dword [esi + 0x74], 0
je 0x4228b7
push 0x14
push edi
push ecx
mov ecx, dword [0x5c86e4]
push ebx
call fcn.0040e3d0
mov edx, dword [ebp - 0x28]
push 0x46
lea ecx, [edi + 1]
push ecx
mov ecx, dword [0x5c86e4]
inc edx
lea eax, [ebx - 1]
push edx
push eax
call fcn.0040e3d0
mov ecx, dword [ebp - 0x28]
push 0x96
lea eax, [edi + 2]
push eax
add ecx, 2
push ecx
mov ecx, dword [0x5c86e4]
lea eax, [ebx - 1]
push eax
call fcn.0040e3d0
push 0xdc
jmp 0x422905
push 0x64
push edi
push ecx
mov ecx, dword [0x5c86e4]
push ebx
call fcn.0040e3d0
mov edx, dword [ebp - 0x28]
push 0x6e
lea ecx, [edi + 1]
push ecx
mov ecx, dword [0x5c86e4]
inc edx
lea eax, [ebx - 1]
push edx
push eax
call fcn.0040e3d0
mov ecx, dword [ebp - 0x28]
push 0x82
lea eax, [edi + 2]
push eax
add ecx, 2
push ecx
mov ecx, dword [0x5c86e4]
lea eax, [ebx - 1]
push eax
call fcn.0040e3d0
push 0x8c
mov eax, dword [ebp - 0x28]
mov ecx, dword [0x5c86e4]
lea edx, [edi + 3]
push edx
push eax
push ebx
call fcn.0040e3d0
mov eax, dword [ebp - 0x28]
lea ecx, [edi - 7]
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0x5c]
sub ecx, dword [esi + 0x60]
lea edx, [edi + 7]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], edx
mov dword [esi + 0x7c], ecx
cmp ecx, 2
jge 0x422943
mov dword [esi + 0x7c], 2
mov ecx, dword [esi + 0x7c]
sub eax, ebx
imul eax, dword [esi + 0x78]
lea ecx, [ecx - 1]
cdq
idiv ecx
sub edi, 4
cmp byte [esi + 0x5a], 0
lea ecx, [eax + ebx - 5]
mov dword [ebp - 0x2c], ecx
je 0x42297a
mov eax, dword [esi + 0x7c]
cdq
sub eax, edx
sar eax, 1
cmp dword [esi + 0x78], eax
jne 0x42297a
mov eax, dword [esi + 0x3c]
sub eax, 5
mov dword [ebp - 0x2c], eax
mov ecx, eax
cmp dword [esi + 0x74], 0
lea edx, [edi + 5]
push edx
push ecx
mov ecx, dword [0x5c86e4]
push ebx
je 0x4229a6
push 0xffffff
call fcn.0040dec0
mov ecx, dword [ebp - 0x2c]
lea eax, [edi + 6]
push eax
push ecx
push ebx
push 0xffffff
jmp 0x4229be
push 0x808080
call fcn.0040dec0
mov ecx, dword [ebp - 0x2c]
lea eax, [edi + 6]
push eax
push ecx
push ebx
push 0x808080
mov ecx, dword [0x5c86e4]
call fcn.0040dec0
movzx edx, byte [esi + 0x70]
movzx eax, byte [esi + 0x71]
mov ecx, dword [esi + 0x74]
mov ebx, dword [ebp - 0x2c]
push edx
push eax
push ecx
push edi
push ebx
mov ecx, 0x5bb1c0
call fcn.00411d50
lea edx, [ebx + 0xa]
lea eax, [edi - 1]
mov dword [esi + 0x18], ebx
add ebx, 0x14
add edi, 0xb
cmp byte [esi + 0x5b], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], edi
je 0x422c66
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call fcn.004225e0
mov eax, dword [ebp - 0x28]
mov ecx, dword [esi + 0xc]
mov edx, dword [0x5c9b64]
add eax, 0xd
cmp byte [esi + 0x71], 0
jne 0x422a31
mov edx, dword [0x5c9b60]
lea edi, [ebp - 0x24]
push edi
push ecx
push eax
jmp 0x422c56
cmp byte [esi + 0x5b], 0
mov edi, dword [esi + 0x14]
je 0x422a4a
sub edi, 0x19
jmp 0x422a4d
sub edi, 0xa
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], edi
lea ebx, [eax + 0xa]
test ecx, ecx
je 0x422a82
mov edx, dword [esi + 8]
push 1
push 1
push 0
push 0
push eax
sub edx, 5
push edx
push ecx
mov ecx, dword [0x5c86e4]
call fcn.0040f3d0
add ebx, 0x14
sub edi, 0x19
mov dword [ebp - 0x2c], edi
mov eax, dword [esi + 0x10]
cdq
sub eax, edx
mov edx, dword [esi + 8]
lea ecx, [ebx + edi - 5]
sar eax, 1
cmp byte [esi + 0x5a], 0
mov dword [ebp - 0x28], ecx
lea edi, [eax + edx - 1]
je 0x422afc
lea eax, [ecx + ebx]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x3c], eax
push 0x32
dec eax
push eax
lea ecx, [edi + 4]
push ecx
mov ecx, dword [0x5c86e4]
lea edx, [edi - 2]
push edx
call fcn.0040e3d0
mov eax, dword [esi + 0x3c]
push 0x96
push eax
lea ecx, [edi + 5]
push ecx
mov ecx, dword [0x5c86e4]
lea edx, [edi - 3]
push edx
call fcn.0040e3d0
mov eax, dword [esi + 0x3c]
mov ecx, dword [0x5c86e4]
push 0xdc
inc eax
push eax
lea eax, [edi + 4]
push eax
lea eax, [edi - 2]
push eax
call fcn.0040e3d0
mov ecx, dword [ebp - 0x28]
push 0x14
push ecx
mov ecx, dword [0x5c86e4]
push ebx
push edi
call fcn.0040e580
mov ecx, dword [ebp - 0x28]
push 0x46
inc ecx
push ecx
mov ecx, dword [0x5c86e4]
lea eax, [ebx - 1]
push eax
lea edx, [edi + 1]
push edx
call fcn.0040e580
mov eax, dword [ebp - 0x28]
push 0x96
add eax, 2
push eax
lea eax, [ebx - 1]
push eax
lea ecx, [edi + 2]
push ecx
mov ecx, dword [0x5c86e4]
call fcn.0040e580
mov edx, dword [ebp - 0x28]
mov ecx, dword [0x5c86e4]
push 0xdc
push edx
push ebx
lea eax, [edi + 3]
push eax
call fcn.0040e580
lea ecx, [edi - 7]
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebx + ecx - 0xa]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x5c]
sub eax, dword [esi + 0x60]
lea edx, [edi + 7]
mov dword [esi + 0x34], edx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x7c], eax
jns 0x422b89
mov dword [esi + 0x7c], 0
mov eax, dword [esi + 0x78]
imul eax, ecx
mov ecx, dword [esi + 0x7c]
cdq
dec ecx
idiv ecx
mov ecx, dword [0x5c86e4]
sub edi, 3
lea edx, [edi + 4]
lea eax, [eax + ebx - 5]
push eax
push ebx
push edx
push 0xff00
mov dword [ebp - 0x2c], eax
call fcn.0040df60
mov eax, dword [ebp - 0x2c]
push eax
push ebx
lea ecx, [edi + 5]
push ecx
mov ecx, dword [0x5c86e4]
push 0xff00
call fcn.0040df60
movzx edx, byte [esi + 0x70]
movzx eax, byte [esi + 0x71]
mov ecx, dword [esi + 0x74]
mov ebx, dword [ebp - 0x2c]
push edx
push eax
push ecx
push ebx
push edi
mov ecx, 0x5bb1c0
call fcn.00411d50
lea edx, [ebx + 0xa]
lea eax, [edi - 1]
add edi, 0xb
mov dword [esi + 0x1c], ebx
add ebx, 0x14
cmp byte [esi + 0x5b], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], ebx
je 0x422c66
mov edi, dword [esi + 8]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
sub edi, 6
call fcn.004225e0
test al, al
je 0x422c25
sub edi, 2
push 0x562698
lea edx, [ebp - 0x24]
push 0x1e
push edx
call fcn.005364ca
mov ecx, dword [ebp - 0x28]
mov edx, dword [0x5c9b64]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
add ecx, 0x12
cmp byte [esi + 0x71], 0
push ecx
push edi
jne 0x422c56
mov edx, dword [0x5c9b60]
mov ecx, dword [0x5c86e4]
push 0xb
push 0
push edx
call fcn.0040efe0
cmp byte [ebp + 8], 0
pop edi
pop ebx
je 0x422cc5
cmp byte [esi], 0
je 0x422c8b
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
add eax, 8
push eax
mov eax, dword [esi + 8]
add ecx, 2
push ecx
push edx
push eax
jmp 0x422cba
cmp dword [esi + 0x44], 0x149
jne 0x422ca7
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 8]
inc edx
push edx
push eax
push ecx
jmp 0x422cba
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 8]
add eax, 5
push eax
push ecx
push edx
mov ecx, dword [0x5b9e5c]
call fcn.0041dfa0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00535a9b
mov esp, ebp
pop ebp
ret 4