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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x58]
cmp eax, dword [ecx + 8]
jbe 0x704f51
sub esp, 0xd8
movzx eax, byte [esp + 0xf4]
cmp al, 2
jne 0x704ebb
mov eax, dword [esp + 0xe8]
mov dword [esp], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 8], eax
call fcn.006caf40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test eax, eax
jl 0x704e8f
mov dword [esp + 0x88], eax
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], ebx
mov eax, dword [esp + 0x100]
mov ecx, dword [eax + 0x60]
mov edx, dword [esp + 0x104]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0xac], ecx
mov edx, dword [esp + 0x100]
mov edx, dword [edx + 0x64]
mov ebx, dword [esp + 0x104]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x9c], ecx
mov edx, dword [eax + 0x5c]
mov dword [esp], ecx
call edx
movzx eax, byte [esp + 4]
add eax, 0xfffffff6
cmp al, 1
jbe 0x704e64
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
mov ebp, dword [esp + 0xec]
mov esi, dword [esp + 0xf0]
mov edi, dword [esp + 0xe8]
xor ebp, ebp
xchg ebp, eax
mov byte [esp + 0x43], al
xchg ebp, eax
xor esi, esi
xchg esi, eax
mov byte [esp + 0x42], al
xchg esi, eax
xor esi, esi
mov dword [esp + 0x68], esi
xor edi, edi
mov dword [esp + 0x64], edi
xor ebp, ebp
mov dword [esp + 0xb4], ebp
xor ebp, ebp
mov dword [esp + 0xb0], ebp
mov ebp, dword [esp + 0xec]
mov esi, dword [esp + 0xf0]
mov edi, dword [esp + 0xe8]
jmp 0x70472c
sub esi, eax
sub ebx, eax
mov ecx, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and eax, esi
mov edx, dword [esp + 0xe8]
lea edi, [edx + eax]
mov ebp, ebx
mov esi, ecx
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
test ebp, ebp
jle 0x704ca0
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebp
mov dword [esp + 0xe8], edi
mov dword [esp], edi
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.006c9f00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
movzx edx, byte [esp + 0x10]
test eax, eax
jl 0x704c74
cmp ecx, 0x1fffffff
jg 0x704c48
mov ebx, dword [esp + 0xec]
cmp eax, ebx
ja 0x704f49
mov dword [esp + 0x58], ecx
mov byte [esp + 0x41], dl
sub ebx, eax
mov dword [esp + 0xec], ebx
mov ebp, dword [esp + 0xf0]
sub ebp, eax
mov dword [esp + 0xf0], ebp
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
mov edi, edx
mov edx, dword [esp + 0xe8]
add edx, ebp
mov dword [esp + 0xe8], edx
mov ebp, dword [0x10e46b8]
mov edx, dword [0x10e46bc]
cmp ecx, 1
je 0x704b59
cmp ecx, 2
je 0x704909
cmp dword [0x10e46b8], ebp
je 0x704836
test ebp, ebp
jne 0x704816
cmp ebx, eax
jae 0x7046f7
jmp 0x704f42
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x110], edx
add esp, 0xd8
ret
mov dword [esp + 0xc8], edx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x5c], eax
mov dword [esp], ebp
mov dword [esp + 4], edx
mov eax, dword [0x10e46bc]
mov dword [esp + 8], eax
call fcn.004038f0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x70488c
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0xc8]
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0xf0]
jmp 0x704805
mov eax, dword [esp + 0x58]
mov dword [esp], eax
movzx eax, byte [esp + 0x41]
mov byte [esp + 4], al
mov eax, dword [esp + 0xe8]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xec]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x10], edx
call fcn.006c9d00
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x7048dd
mov ebx, dword [esp + 0xec]
mov esi, dword [esp + 0xf0]
jmp 0x704809
mov eax, dword [0x10e46b0]
mov ecx, dword [0x10e46b4]
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], ecx
add esp, 0xd8
ret
mov eax, edi
mov edi, esp
lea esi, [esp + 0xdc]
call fcn.004612e2
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x14], edx
mov byte [esp + 0x18], al
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x20], eax
call fcn.00704f60
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov esi, ecx
mov ecx, dword [esp + 0x34]
mov edi, edx
mov edx, dword [esp + 0x3c]
test eax, eax
je 0x704993
mov ebx, dword [esp + 0xec]
mov esi, dword [esp + 0xf0]
movzx edi, byte [esp + 0x41]
mov ebp, eax
mov eax, ecx
mov ecx, dword [esp + 0x58]
jmp 0x7047fd
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], esi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0xbc], edx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebp
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x5c]
mov edx, dword [esp + 0x9c]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
add eax, 0xfffffff6
cmp al, 1
jbe 0x704a44
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc0]
mov esi, dword [esp + 0xf0]
movzx edi, byte [esp + 0x41]
mov ebp, dword [esp + 0x7c]
mov ebp, 1
xchg ebp, eax
mov byte [esp + 0x42], al
xchg ebp, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], ebx
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0xec]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0x80]
mov ebp, dword [esp + 0x7c]
jmp 0x7047fd
lea edi, [esp + 0xcc]
lea esi, [esp + 0xdc]
call fcn.004612e2
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], eax
call fcn.006d06b0
mov eax, dword [esp + 0x10]
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0xa0]
mov dword [esp], ebx
mov ebp, dword [esp + 0xa4]
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x50]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0xc], ebx
call fcn.006d0820
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xa8], ecx
mov edi, esp
lea esi, [esp + 0xcc]
call fcn.004612e2
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x1c], eax
call fcn.00703710
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
test eax, eax
jne 0x704b39
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa0]
jmp 0x7049f1
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], ecx
add esp, 0xd8
ret
mov eax, edi
mov edi, esp
lea esi, [esp + 0xdc]
call fcn.004612e2
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x14], edx
mov byte [esp + 0x18], al
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0xac]
mov dword [esp + 0x20], eax
call fcn.00704f60
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov esi, ecx
mov ecx, dword [esp + 0x34]
mov edi, ecx
mov ecx, dword [esp + 0x3c]
test eax, eax
je 0x704bfb
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb0], esi
mov ebx, dword [esp + 0xec]
mov esi, dword [esp + 0xf0]
mov ebp, eax
mov edx, ecx
mov eax, edi
mov ecx, dword [esp + 0x58]
movzx edi, byte [esp + 0x41]
jmp 0x7047fd
mov dword [esp + 0x8c], eax
mov eax, 1
mov byte [esp + 0x43], al
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb0], esi
mov ebx, dword [esp + 0xec]
mov esi, dword [esp + 0xf0]
mov ebp, dword [esp + 0x8c]
mov edx, ecx
mov eax, edi
mov ecx, dword [esp + 0x58]
movzx edi, byte [esp + 0x41]
jmp 0x7047fd
mov eax, dword [0x10e46b0]
mov ecx, dword [0x10e46b4]
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], ecx
add esp, 0xd8
ret
mov eax, dword [0x10e46b0]
mov ecx, dword [0x10e46b4]
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], ecx
add esp, 0xd8
ret
movzx ebp, byte [esp + 0x43]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x704e1f
mov ebp, dword [esp + 0xb0]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0xb4]
mov dword [esp + 0x98], ebp
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0x48], edi
movzx edi, byte [esp + 0x42]
xchg edi, eax
test al, al
xchg edi, eax
je 0x704da9
cmp dword [0x10e35c8], ebp
jne 0x704d68
mov edi, dword [esp + 0xf8]
mov edi, dword [edi + 0x30]
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0xfc]
mov dword [esp], edi
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x98]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x84]
call eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], 0
add esp, 0xd8
ret
cmp dword [0x10e35dc], ebp
je 0x704cee
cmp dword [0x10e35e0], ebp
je 0x704cee
cmp dword [0x10e35ec], ebp
je 0x704cee
cmp dword [0x10e35f0], ebp
je 0x704cee
cmp dword [0x10e35e8], ebp
je 0x704cee
jmp 0x704ee7
mov dword [esp + 0x94], ebp
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x5c]
mov edx, dword [esp + 0x9c]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
add eax, 0xfffffff6
cmp al, 1
ja 0x704dfa
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0x44]
jmp 0x704ce6
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x9c]
mov dword [esp], ecx
call eax
mov ebx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
jmp 0x704dea
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0xac]
mov dword [esp], ecx
call eax
mov ebp, dword [esp + 4]
mov eax, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x50]
jmp 0x704cd3
mov eax, dword [esp + 0xf8]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0xfc]
mov dword [esp], edx
call ecx
mov ebx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
jmp 0x70469d
mov eax, dword [0x10e46b0]
mov ecx, dword [0x10e46b4]
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], ecx
add esp, 0xd8
ret
mov eax, dword [0x10e46b8]
mov ecx, dword [0x10e46bc]
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], ecx
add esp, 0xd8
ret
mov dword [esp], ebp
mov eax, dword [esp + 0x98]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], eax
lea eax, [0xb929da]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 7
call fcn.006d0210
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409480
mov eax, dword [esp + 8]
lea ecx, [0xaa9660]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00433120
mov ecx, ebx
call fcn.00460c20
mov ecx, ebx
call fcn.00460c20
nop
call fcn.0045f5f0
jmp fcn.007045a0