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

Disassembly:
sub esp, 0x34
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x30], eax
push ebp
push esi
mov esi, dword [esp + 0x40]
mov edx, dword [esi + 0x50]
mov ebp, ecx
mov ecx, dword [ebp]
push edi
mov dword [esp + 0xc], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
push 0
push edx
call eax
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xc]
push eax
push 0x20
lea eax, [esp + 0x24]
push eax
call edx
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x100700e4
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1005710f
add esp, 0x34
ret 4
push ebx
mov bx, word [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
test bl, 4
je 0x10070116
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x10]
push edx
push 4
lea edx, [esp + 0x24]
push edx
call eax
mov edi, dword [esp + 0x38]
mov bx, word [esp + 0x28]
test bl, 0x10
je 0x1007013b
mov ecx, dword [ebp]
mov edx, dword [ecx]
lea edi, [esp + 0x10]
push edi
lea eax, [esi + 0x54]
push 4
push eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0x38]
mov bx, word [esp + 0x28]
jmp 0x1007013e
mov dword [esi + 0x54], edi
mov cx, word [esp + 0x24]
movzx eax, word [esp + 0x26]
movzx edx, cx
mov dword [esi], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 4], eax
movzx eax, bx
mov dword [esi + 0x14], edx
mov edx, 0xf3c
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
cmp cx, dx
jae 0x10070187
mov edx, 0xed8
cmp cx, dx
jb 0x10070180
mov edx, 0xfa0
cmp word [esp + 0x26], dx
je 0x10070187
mov edx, 0x2400
jmp 0x1007018c
mov edx, 0x12000
mov dword [esi + 0x10], edx
mov edx, 0xf6e
cmp cx, dx
jb 0x100701a0
mov dword [esi + 0x10], 0x48000
movzx ecx, word [esp + 0x2a]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
test al, 1
je 0x100701ba
mov eax, 8
jmp 0x100701c0
and eax, 8
or eax, 0x10
mov dword [esi + 0x20], eax
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esi + 0x24], eax
imul eax, ecx
mov dword [esi + 0x28], eax
test edi, edi
jne 0x100701dd
xor ecx, ecx
jmp 0x100701e8
lea ecx, [edi - 1]
imul ecx, dword [esi + 0x10]
add ecx, dword [esp + 0x3c]
mov dword [esi + 0x40], ecx
mov edx, 0x2c
test bl, 0x20
jne 0x100701f9
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
imul eax, ecx
mov dword [esi + 0x30], eax
add eax, edx
add eax, edi
mov dword [esi + 0x2c], edx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
mov edi, dword [esi + 0x1c]
fild dword [esi + 0x40]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov dword [esi + 0x3c], eax
fmul qword [0x100a3df8]
fidiv dword [esp + 0x14]
call fcn.1008b9f0
mov dword [esp + 0x14], eax
mov dword [esi + 0x44], eax
test eax, eax
jg 0x10070249
xor eax, eax
jmp 0x1007025c
fild dword [esp + 0x18]
fmul qword [0x100a5130]
fidiv dword [esp + 0x14]
call fcn.1008b9f0
mov ecx, dword [esi + 0x28]
imul ecx, edi
add ecx, ecx
mov dword [esi + 0x48], eax
add ecx, ecx
add ecx, ecx
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
test byte [esp + 0x28], 0x20
mov dword [esi + 0x4c], eax
jne 0x100702df
mov ecx, dword [esp + 0x30]
push ecx
call fcn.10057386
add esp, 4
cmp dword [esi + 0x7c], 0
mov edi, eax
je 0x100702b2
mov eax, dword [esi + 0x74]
test eax, eax
je 0x100702b2
push eax
call fcn.10057104
add esp, 4
mov dword [esi + 0x74], 0
mov eax, 1
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], eax
mov eax, edi
mov dword [esi + 0x74], edi
test eax, eax
je 0x10070374
mov ecx, dword [ebp]
mov edx, dword [ecx]
lea edi, [esp + 0x10]
push edi
mov edi, dword [esp + 0x34]
push edi
push eax
mov eax, dword [edx + 0xc]
call eax
mov eax, dword [esi + 0x54]
xor ecx, ecx
lea ebx, [esi + 0x54]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10057386
add esp, 4
cmp dword [esi + 0x64], 0
mov edi, eax
je 0x1007031d
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1007031d
push eax
call fcn.10057104
add esp, 4
mov dword [esi + 0x5c], 0
mov eax, 1
mov dword [esi + 0x64], eax
mov dword [esi + 0x60], eax
mov eax, edi
mov dword [esi + 0x5c], edi
test eax, eax
je 0x10070374
mov ecx, dword [ebp]
mov edx, dword [ecx]
lea edi, [esp + 0x10]
push edi
mov edi, dword [ebx]
add edi, edi
add edi, edi
push edi
push eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, 0xed8
cmp word [esp + 0x24], cx
ja 0x1007039f
mov edx, dword [ebx]
push edx
call fcn.10057386
add esp, 4
push 1
push 1
add esi, 0x68
push eax
mov ecx, esi
call fcn.1006cc60
mov esi, dword [esi]
test esi, esi
jne 0x1007038c
pop ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1005710f
add esp, 0x34
ret 4
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ebx]
push edx
push esi
call eax
mov ecx, dword [esp + 0x40]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.1005710f
add esp, 0x34
ret 4