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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor eax, eax
push esi
push 0x1007544
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call fcn.0107e280
mov esi, dword [ebp + 8]
add esp, 4
test esi, esi
je 0x1049c0e
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1049c0e
cmp dword [esi + 0x50], 0
je 0x1049c0e
movzx eax, word [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
movzx edx, word [ebx + 0xe]
push edi
push eax
movzx eax, word [ebx + 0xc]
push ecx
mov ecx, dword [ebx + 4]
push edx
movzx edx, word [ebx + 2]
push eax
movzx eax, word [ebx]
push ecx
push edx
push eax
push 0x1007508
call fcn.0107e280
movzx ecx, word [ebx + 0x14]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
add esp, 0x20
add edx, edx
push ecx
add edx, edx
push 3
add edx, edx
push edx
push eax
call fcn.010468b0
movzx edi, ax
movzx eax, word [ebx + 0xe]
cmp eax, 0x10
je 0x1049999
cmp eax, 0x14
je 0x1049993
cmp eax, 0x18
sete al
dec al
and al, 0xfd
add al, 2
mov byte [ebp + 0xb], al
jmp 0x104999d
mov byte [ebp + 0xb], 1
jmp 0x104999d
mov byte [ebp + 0xb], 0
mov ecx, dword [ebx + 4]
push ecx
call fcn.010495f0
push edi
mov byte [ebp + 0xf], al
call fcn.010495a0
movzx ecx, al
mov edx, 3
mov byte [ebp - 1], al
cmp dx, cx
jae 0x10499c3
xor ecx, ecx
jmp 0x10499cb
movzx ecx, word [ecx*2 + 0x101f9dc]
movzx edi, cx
movzx ecx, byte [ebp + 0xb]
movzx edx, al
movzx eax, byte [ebp + 0xf]
push edi
push edx
push eax
push ecx
push 0x10074e4
call fcn.0107e280
mov cl, 0xff
add esp, 0x14
cmp byte [ebp + 0xb], cl
je 0x1049bf3
cmp byte [ebp + 0xf], cl
je 0x1049bf3
mov al, byte [ebp - 1]
cmp al, cl
je 0x1049bf3
xor ecx, ecx
cmp edi, ecx
je 0x1049bf3
xor edx, edx
test al, al
sete dl
mov dword [esi + 0x40], 1
mov eax, edx
mov dword [esi + 0x3c], eax
movzx edx, word [ebx + 0xc]
mov dword [esi + 8], edx
lea edx, [edi*4]
mov dword [esi + 0xc], edx
cmp eax, ecx
je 0x1049a4a
push 0x10074d8
call fcn.0107e280
add esp, 4
xor ecx, ecx
mov eax, dword [esi + 0xc]
shr eax, 2
mov dword [ebp - 8], eax
fild dword [ebp - 8]
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], ecx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ecx
test eax, eax
jns 0x1049a6c
fadd qword [0x1007100]
mov ecx, dword [ebx + 4]
fmul qword [0x10033f8]
fild dword [ebx + 4]
test ecx, ecx
jns 0x1049a82
fadd qword [0x1007100]
fdivp st(1)
fadd qword [0x10033f0]
call fcn.0107fea0
cdq
push esi
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], edx
call fcn.01049820
test eax, eax
js 0x1049bea
mov eax, dword [esi + 0x50]
lea edx, [esi + 0x58]
push edx
push ebx
push eax
call fcn.0107e2e0
test eax, eax
js 0x1049bea
mov ecx, dword [esi]
mov edx, dword [0x101f9cc]
mov dword [ecx], edx
mov eax, dword [esi]
movzx edx, word [eax + 4]
mov cl, byte [ebp - 1]
add eax, 4
and cl, 3
movzx ecx, cl
shl cx, 5
mov edi, 0xff92
and dx, di
or cx, dx
or cx, 0x12
mov word [eax], cx
mov ecx, 0xa0
mov word [eax + 2], cx
mov edi, dword [esi]
mov al, byte [ebp + 0xb]
movzx edx, word [edi + 0xc]
and al, 3
movzx eax, al
shl ax, 0xa
mov ecx, 0xf0ff
and dx, cx
or ax, dx
mov edx, 0x800
or word [edi + 0x10], dx
movzx ecx, word [edi + 0x10]
mov word [ebp + 8], cx
mov cl, byte [ebp + 0xf]
mov word [edi + 0xc], ax
and cl, 7
movzx edx, cl
movzx ecx, byte [ebx + 2]
and eax, 0xfe8
shl cx, 0xc
or dx, cx
or dx, ax
mov eax, 0xffef
and dx, ax
mov eax, dword [ebp + 8]
mov word [edi + 0xc], dx
movzx ecx, word [ebx + 0xc]
or eax, 0x1000
mov word [edi + 0xe], cx
mov word [edi + 0x10], ax
movzx edx, word [ebx + 2]
mov eax, dword [ebx + 0x10]
push edx
push eax
call fcn.010498a0
mov word [edi + 0x12], ax
movzx ecx, word [ebx + 0x14]
xor edx, edx
push esi
mov word [edi + 0x14], cx
mov word [edi + 0x16], dx
call fcn.010496d0
xor edi, edi
lea eax, [ebp - 0x18]
push eax
push esi
mov dword [esi + 0x54], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x30], edi
call fcn.0107a5b0
cmp eax, edi
jl 0x1049bea
push esi
call fcn.0107a5a0
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x1049bd3
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
push ecx
push edx
push edi
push ebx
call fcn.01080030
neg eax
adc edx, edi
neg edx
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x10074c4
call fcn.0107e280
add esp, 4
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret 0xc