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

Disassembly:
sub esp, 0x74
mov eax, dword [0x1014d0cc]
xor eax, esp
mov dword [esp + 0x6c], eax
or eax, 0xffffffff
push ebx
push ebp
mov ebp, dword [esp + 0x80]
test byte [ebp + 0x24], 1
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x2e0]
mov edx, dword [eax + 0x11b8]
push esi
push edi
mov edi, dword [eax + 0x11bc]
mov dword [esp + 0x68], edi
mov edi, dword [eax + 0x11c0]
mov esi, ecx
mov ecx, dword [eax + 0xac]
mov dword [esp + 0x6c], edi
mov edi, dword [eax + 0x11c4]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x11b4]
mov dword [esp + 0x70], edi
mov edi, dword [eax + 0x11c8]
mov eax, dword [eax + 0x11cc]
mov dword [esp + 0x24], esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], eax
jne 0x10080e1c
xor eax, eax
xor edi, edi
xor ebx, ebx
cmp ecx, edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
jne 0x10080e4f
cmp ecx, 1
jne 0x10080e13
lea edi, [esp + 0x44]
lea ebx, [esp + 0x68]
call fcn.10015190
jmp 0x10080e18
cmp edx, ebx
sete al
test al, al
je 0x10080e4f
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
call fcn.10083d00
mov edx, dword [esp + 0x18]
add esp, 4
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov ecx, dword [ebp + 0x10]
cmp dword [ebp + 0x18], ecx
jl 0x10080e5e
mov dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x14]
test byte [eax + 0x50c], 0x10
je 0x10080e82
mov edx, dword [eax + 0x2e0]
cmp byte [edx + 0xba1], 0
jne 0x10080e82
test byte [eax + 0x51d], 1
je 0x10080e90
mov eax, dword [eax + 0x2e0]
mov edx, dword [eax + 0x198]
jmp 0x10080e98
mov eax, edx
mov edx, dword [eax + 0x194]
mov eax, ecx
mov dword [esp + 0x20], eax
cmp eax, 0x12c
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], 0x12c
lea eax, [esp + 0x1c]
jg 0x10080eb9
lea eax, [esp + 0x20]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x10081108
fild dword [esp + 0x14]
fmul qword [0x101305a0]
fstp qword [esp + 0x58]
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x18], eax
jl 0x10080ee4
mov dword [ebp + 0x18], 0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
add eax, esi
cmp esi, eax
jbe 0x10080ef6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add esi, edi
add ecx, eax
cmp esi, ecx
ja 0x10080f08
cmp esi, eax
jae 0x10080f0e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0xc]
mov edi, esi
mov ebx, esi
shr edi, 2
and ebx, 3
cmp esi, edx
jb 0x10080f28
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 8]
cmp eax, edi
ja 0x10080f31
sub edi, eax
fild dword [ebp + 0x10]
mov eax, dword [ebp + 4]
mov ecx, dword [eax + edi*4]
mov edi, dword [ecx + ebx*4]
fcomp qword [esp + 0x58]
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x2c], ebx
fnstsw ax
test ah, 1
jne 0x1008102b
cmp dword [esp + 0x14], 0
jle 0x1008102b
mov dl, byte [ebp + 0x24]
and dl, 1
cmp dword [edi + 8], 0
mov byte [esp + 0x20], dl
jne 0x1008102b
mov eax, dword [esp + 0x20]
push eax
push ebp
mov esi, edi
call fcn.10080cc0
test al, al
jne 0x1008102b
test byte [edi + 0x18], 0x1f
ja 0x10080fa2
mov ecx, dword [edi + 0x20]
and ecx, 0x3f00
cmp ecx, 0x1000
jne 0x1008102b
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x10080fc2
push eax
mov esi, ebp
call fcn.10082b70
mov eax, dword [eax]
call fcn.10082a10
test al, al
jne 0x1008102b
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 0x20]
and edx, 0x3f00
cmp edx, 0x1000
jne 0x10081027
cmp eax, ebx
jle 0x10080fde
sub eax, 1
mov dword [esp + 0x18], eax
cmp dword [esp + 0x10], ebx
jle 0x10080fe9
sub dword [esp + 0x10], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
add eax, esi
cmp esi, eax
mov dword [esp + 0x30], 0
jbe 0x10081003
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x2c]
sub esp, 0xc
mov ebx, esp
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], esi
call fcn.10082f40
mov ebx, ebp
call fcn.100807d0
jmp 0x10081092
mov dword [esp + 0x18], ebx
movzx edx, byte [ebp + 0x24]
add dword [ebp + 0x18], 1
and edx, 0xffffff01
push edx
push ebp
mov esi, edi
call fcn.10080cc0
test al, al
je 0x10081092
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x10081067
push eax
mov esi, ebp
call fcn.10082b70
mov eax, dword [eax]
lea ecx, [esp + 0x60]
push ecx
call fcn.10082a90
test al, al
jne 0x10081092
movzx eax, word [edi + 0xe]
test ax, ax
je 0x1008108e
mov edx, dword [edi + 0x18]
mov ecx, dword [esp + 0x8c]
and edx, 0x1f
add edx, 1
imul edx, dword [esp + 0x28]
movzx eax, ax
sub ecx, eax
cmp ecx, edx
jl 0x10081092
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x1c]
sub eax, 1
test eax, eax
mov dword [esp + 0x1c], eax
jg 0x10080ed5
mov esi, dword [esp + 0x18]
cmp esi, 0xffffffff
jle 0x100810fb
cmp dword [esp + 0x10], esi
jle 0x100810b9
sub dword [esp + 0x10], 1
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
add edx, edi
cmp edi, edx
jbe 0x100810cb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub esp, 0xc
add edi, esi
add ecx, eax
cmp edi, ecx
mov ebx, esp
ja 0x100810e2
cmp edi, eax
jae 0x100810e8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [ebx], 0
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edi
mov ebx, ebp
call fcn.100807d0
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
jne 0x10081147
mov esi, dword [esp + 0x24]
mov edi, dword [ebp + 0x10]
add edi, dword [ebp + 0xc]
mov dword [esi], 0
mov eax, dword [ebp + 0xc]
cmp eax, edi
ja 0x10081124
mov edx, dword [ebp + 0x10]
add edx, eax
cmp edi, edx
jbe 0x1008112a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esi + 4], ebp
mov dword [esi + 8], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.1010defb
add esp, 0x74
ret 8
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
add eax, edi
cmp edi, eax
jbe 0x10081159
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add edi, esi
add ecx, eax
cmp edi, ecx
ja 0x1008116b
cmp edi, eax
jae 0x10081171
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
mov dword [eax + 8], edi
pop edi
pop esi
mov dword [eax + 4], ebp
pop ebp
pop ebx
xor ecx, esp
mov dword [eax], 0
call fcn.1010defb
add esp, 0x74
ret 8