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

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
movzx ecx, word [esp + 0xc]
push edi
push esi
push ebp
push ebx
sub esp, 0x58
mov edi, ecx
mov esi, edx
mov ebp, eax
mov dword [esp + 0x18], 0
movsx ebx, word [ebp]
xor edx, edx
test ebx, ebx
je 0x704a81
movsx eax, word [ebp + 2]
cmp eax, 1
je 0x704cb8
cmp eax, 2
je 0x704c28
cmp eax, 3
je 0x704be5
cmp eax, 4
je 0x7048e1
cmp eax, 5
jne 0x7048c0
xor eax, eax
mov dword [esp + 0x54], eax
movsx eax, word [ebp + 4]
cmp eax, 0x2c4
mov dword [esp + 0x4c], eax
je 0x704b6f
cmp eax, 0x2c7
je 0x704b1e
mov ecx, eax
cmp ecx, 0x68c
jl 0x704675
cmp ecx, 0x697
jg 0x704675
lea ecx, [esp + 0x18]
push ecx
push esi
mov edi, eax
push edi
call fcn.00706b60
lea ecx, [esp + 0x24]
push ecx
push esi
push 0x2c
call fcn.0070625c
mov ecx, 1
mov dword [esp + 0x68], ecx
add edi, 0xfffff974
movzx ecx, di
push ecx
call fcn.00706b8c
mov edi, eax
add esp, 0x1c
mov ecx, dword [0xa96ed4]
mov ecx, dword [ecx + 0xa8c]
jmp 0x7046d7
mov edi, eax
mov ecx, 3
mov dword [esp + 0x50], ecx
cmp edi, 0x2c5
je 0x704b17
mov ecx, eax
cmp ecx, 0x2c6
jne 0x70469d
mov edi, 2
jmp 0x7046c8
push ecx
call fcn.00706320
pop ecx
mov ecx, dword [0xa96eb4]
movzx ecx, byte [eax + ecx]
cmp ecx, 1
jne 0x7046ba
mov edi, 2
jmp 0x7046c8
cmp ecx, 2
jne 0x7046c6
mov edi, 4
jmp 0x7046c8
xor edi, edi
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00706518
mov ecx, eax
add esp, 4
cmp ebx, 1
jle 0x70488a
mov eax, dword [0xa96eb8]
movsx edx, word [ebp + 6]
mov dword [esp + 0x4c], edx
xor edx, edx
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x48], edx
test edx, edx
jle 0x704738
mov edx, dword [esp + 0x4c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x44]
movsx ebp, word [eax + esi*2]
add esi, 1
cmp edx, ebp
je 0x704ad2
cmp esi, edi
jl 0x704719
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x704abe
cmp eax, 1
je 0x704775
cmp eax, 2
jne 0x70475f
mov eax, dword [0xa96ed4]
mov eax, dword [eax + 0x1a9c]
mov dword [esp + 0x54], eax
jmp 0x704784
cmp eax, 3
jne 0x704784
mov eax, dword [0xa96ed4]
mov eax, dword [eax + 0x1aa4]
mov dword [esp + 0x54], eax
jmp 0x704784
mov eax, dword [0xa96ed4]
mov eax, dword [eax + 0x1aa0]
mov dword [esp + 0x54], eax
cmp ebx, 2
jle 0x7047bd
movsx eax, word [ebp + 8]
cmp eax, 0x685
jne 0x7047bd
test ecx, ecx
je 0x7047ed
mov eax, dword [esp + 0x54]
test eax, eax
je 0x7047ed
movsx edx, word [ebp + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, ebp
call fcn.00704cdd
jmp 0x7047ed
lea eax, [esp + 0x18]
push eax
push esi
movsx edx, word [ebp + 4]
push ecx
push edx
push ebp
call fcn.0070655c
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.007068fc
lea ecx, [esp + 0x34]
push ecx
push esi
mov ecx, dword [esp + 0x78]
push ecx
call fcn.007067e4
add esp, 0x28
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.007068fc
add esp, 8
test edi, edi
je 0x70485c
cmp edi, 2
je 0x704aaf
cmp edi, 4
je 0x704a9d
mov ecx, dword [0xa96eb8]
mov dword [esp + 0x50], ecx
cmp edi, 1
je 0x704a93
add dword [esp + 0x50], 0x18
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00706340
mov ecx, dword [esp + 0x54]
mov edi, dword [ecx]
lea ecx, [esp + 0x1c]
push ecx
movsx eax, word [edi + eax*2]
mov edi, dword [0xa96ed4]
push esi
push dword [edi + eax*4]
mov ecx, dword [esp + 0x5c]
push ecx
push ebp
call fcn.0070655c
add esp, 0x18
jmp 0x704870
lea ecx, [esp + 0x18]
push ecx
push esi
mov edi, dword [esp + 0x54]
push edi
push ebp
call fcn.007064d8
add esp, 0x10
cmp ebx, 2
jle 0x7048aa
lea eax, [esp + 0x18]
push eax
push esi
movsx ecx, word [ebp + 8]
push ecx
call fcn.00706b60
add esp, 0xc
jmp 0x7048aa
movsx ebx, word [ebp + 4]
cmp ebx, 0x2c7
je 0x704b03
lea ecx, [esp + 0x18]
push ecx
push esi
push ebx
push ebp
call fcn.007064d8
add esp, 0x10
movzx eax, word [esi]
push eax
call fcn.00815e78
pop ecx
mov edx, dword [esp + 0x18]
mov word [esi], ax
jmp 0x704a6e
cmp eax, 6
jne 0x704a6e
lea ecx, [esp + 0x18]
push ecx
push esi
push ebp
call fcn.007069fc
add esp, 0xc
mov edx, dword [esp + 0x18]
jmp 0x704a6e
movsx eax, word [ebp + 4]
xor ecx, ecx
mov dword [esp + 0x54], ecx
xor edi, edi
cmp eax, 0x2c4
je 0x704bcf
cmp eax, 0x2c7
je 0x704b99
cmp eax, 0x68c
jl 0x704944
cmp eax, 0x697
jg 0x704944
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
call fcn.00706b60
lea ecx, [esp + 0x24]
push ecx
push esi
push 0x2c
call fcn.0070625c
add esp, 0x18
mov ecx, dword [0xa96ed4]
mov edi, dword [ecx + 0xa8c]
mov dword [esp + 0x54], edi
mov edi, 1
jmp 0x704960
cmp eax, 0x698
jne 0x704960
mov ecx, dword [0xa96ed4]
mov edi, dword [ecx + 0xa8c]
mov dword [esp + 0x54], edi
mov edi, 1
cmp ebx, 1
jle 0x704a4a
movsx ecx, word [ebp + 6]
mov dword [esp + 0x50], ecx
test edi, edi
je 0x70499d
mov ecx, dword [0xa96ebc]
cmp edi, 1
je 0x704b91
mov edi, dword [esp + 0x50]
mov ecx, dword [ecx]
movsx edi, word [ecx + edi*2 - 0xb58]
mov ecx, dword [0xa96ed4]
mov edi, dword [ecx + edi*4]
jmp 0x7049a8
push ecx
call fcn.00706518
mov edi, eax
add esp, 4
cmp ebx, 3
jle 0x7049e2
movsx ecx, word [ebp + 0xa]
cmp ecx, 0x685
jne 0x7049e2
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x704a11
test edi, edi
je 0x704a11
mov edx, dword [esp + 0x50]
mov dword [esp + 0xc], edi
mov eax, ebp
mov dword [esp + 0x10], esi
lea edi, [esp + 0x18]
mov dword [esp + 0x14], edi
call fcn.00704cdd
jmp 0x704a11
lea ecx, [esp + 0x18]
push ecx
push esi
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.007067e4
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.007068fc
lea ecx, [esp + 0x2c]
push ecx
push esi
push edi
call fcn.007067e4
add esp, 0x20
cmp ebx, 2
jle 0x704a5d
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.007068fc
lea ecx, [esp + 0x20]
push ecx
push esi
movsx edi, word [ebp + 8]
push edi
push ebp
call fcn.007064d8
add esp, 0x18
cmp ebx, 3
jle 0x704a5d
lea eax, [esp + 0x18]
push eax
push esi
movsx ecx, word [ebp + 0xa]
push ecx
call fcn.00706b60
add esp, 0xc
jmp 0x704a5d
lea eax, [esp + 0x18]
push eax
push esi
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.007067e4
add esp, 0xc
movzx eax, word [esi]
push eax
call fcn.00815e78
pop ecx
mov edx, dword [esp + 0x18]
mov word [esi], ax
xor ecx, ecx
mov word [esi + edx*2], cx
add edx, 1
mov eax, edx
add esp, 0x58
pop ebx
pop ebp
pop esi
pop edi
ret
xor ecx, ecx
mov word [esi], cx
mov eax, 1
add esp, 0x58
pop ebx
pop ebp
pop esi
pop edi
ret
add dword [esp + 0x50], 0x10
jmp 0x704829
mov ecx, dword [0xa96eb8]
add ecx, 8
mov dword [esp + 0x50], ecx
jmp 0x704829
mov ecx, dword [0xa96eb8]
mov dword [esp + 0x50], ecx
jmp 0x704829
mov eax, dword [0xa96ed4]
mov eax, dword [eax + 0x1a98]
mov dword [esp + 0x54], eax
jmp 0x704784
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x18]
movsx edx, word [ebp + 4]
push eax
push esi
push ecx
push edx
push ebp
call fcn.0070655c
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.007068fc
add esp, 0x1c
jmp 0x7047fb
lea ebx, [esp + 0x18]
push ebx
push esi
push ecx
call fcn.007067e4
add esp, 0xc
jmp 0x7048aa
xor edi, edi
jmp 0x7046c8
lea eax, [esp + 0x18]
push eax
push esi
mov eax, dword [esp + 0x54]
push eax
call fcn.00706b60
lea eax, [esp + 0x24]
push eax
push esi
push 0x2c
call fcn.0070625c
mov eax, 2
mov dword [esp + 0x68], eax
push edi
call fcn.00706b8c
add esp, 0x1c
cmp eax, 2
je 0x704b68
mov edi, 1
mov ecx, dword [0xa96ed4]
mov ecx, dword [ecx + 0xa98]
jmp 0x7046d7
mov edi, 3
jmp 0x704b57
xor eax, eax
mov dword [esp + 0x50], eax
push edi
call fcn.00706b8c
mov edi, eax
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00706518
mov ecx, eax
add esp, 8
jmp 0x7046d7
add ecx, 8
jmp 0x704984
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
call fcn.00706b60
lea ecx, [esp + 0x24]
push ecx
push esi
push 0x2c
call fcn.0070625c
add esp, 0x18
mov ecx, dword [0xa96ed4]
mov edi, dword [ecx + 0xa98]
mov dword [esp + 0x54], edi
mov edi, 2
jmp 0x704960
push 0x2c4
call fcn.00706518
mov dword [esp + 0x58], eax
add esp, 4
jmp 0x704960
cmp ebx, 1
jle 0x704c0c
lea ebx, [esp + 0x1c]
push ebx
push ebp
call fcn.00706360
add esp, 8
lea eax, [esp + 0x1c]
mov edx, esi
mov ecx, edi
call 0x7045a5
mov edx, eax
jmp 0x704a6e
lea eax, [esp + 0x18]
push eax
push esi
movsx ecx, word [ebp + 4]
push ecx
call fcn.00706b60
add esp, 0xc
mov edx, dword [esp + 0x18]
jmp 0x704a6e
mov ecx, 2
cmp ebx, 2
mov edi, 0
jle 0x704c39
mov ebx, ecx
test ebx, ebx
jle 0x704c6f
lea ecx, [esp + 0x18]
push ecx
push esi
movsx eax, word [ebp + edi*2 + 4]
push eax
call fcn.00706b60
add esp, 0xc
add edi, 1
cmp edi, ebx
jge 0x704c6f
cmp edi, 1
jne 0x704c3d
lea ecx, [esp + 0x18]
push ecx
push esi
push 0x20
call fcn.0070625c
add esp, 0xc
jmp 0x704c3d
lea ecx, [esp + 0x18]
push ecx
push esi
push 0x3f
call fcn.0070625c
add esp, 0xc
movsx ecx, word [ebp]
cmp ecx, 2
jg 0x704c91
mov edx, dword [esp + 0x18]
jmp 0x704a6e
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.007069b8
lea eax, [esp + 0x20]
push eax
push esi
movsx ecx, word [ebp + 8]
push ecx
call fcn.00706b60
add esp, 0x14
mov edx, dword [esp + 0x18]
jmp 0x704a6e
lea ecx, [esp + 0x18]
push ecx
push esi
push ebp
call fcn.00706490
add esp, 0xc
mov edx, dword [esp + 0x18]
jmp 0x704a6e