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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
push edi
cmp eax, 0xffffffff
je 0x49e56b
push eax
push ecx
call fcn.0049b0eb
add esp, 4
call fcn.0049b2bb
mov edi, eax
mov ecx, dword [edi + 4]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
push ecx
mov dword [esp + 0x1c], ebx
call fcn.0049fe91
cmp eax, ebx
je 0x49e234
mov dword [edi + 8], eax
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
call fcn.0049fe0d
cmp eax, ebx
je 0x49e255
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x50]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
cmp ecx, 1
jne 0x49e273
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov al, byte [esi + 0x18]
cmp al, 0xff
je 0x49e466
fld1
movzx eax, al
fst dword [esp + 0x38]
mov dword [esp + 0x10], eax
fldz
lea ecx, [esp + 0x20]
fst dword [esp + 0x3c]
push ecx
fst dword [esp + 0x44]
mov dword [esp + 0x24], ebx
fst dword [esp + 0x48]
fst dword [esp + 0x4c]
fst dword [esp + 0x50]
fst dword [esp + 0x58]
fst dword [esp + 0x5c]
fst dword [esp + 0x60]
fst dword [esp + 0x64]
fst dword [esp + 0x68]
fst dword [esp + 0x70]
fst dword [esp + 0x74]
fst dword [esp + 0x78]
fst dword [esp + 0x7c]
fst dword [esp + 0x80]
fst dword [esp + 0x88]
fst dword [esp + 0x8c]
fst dword [esp + 0x90]
fst dword [esp + 0x94]
fstp dword [esp + 0x98]
fst dword [esp + 0x54]
fst dword [esp + 0x6c]
fstp dword [esp + 0x9c]
fild dword [esp + 0x14]
fdiv qword [0x4624a8]
fstp dword [esp + 0x84]
call fcn.0049fe79
push ebx
push ebx
lea edx, [esp + 0x40]
push edx
push 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
push 1
push eax
call fcn.0049fe07
cmp eax, ebx
je 0x49e33e
mov dword [esp + 0x24], eax
cmp dword [esi + 0x50], 2
jne 0x49e3e1
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], ebx
call fcn.0049fe91
cmp eax, ebx
je 0x49e361
mov dword [edi + 8], eax
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x14]
push eax
shr ebx, 1
push ecx
dec ebx
mov dword [esp + 0x1c], 0
call fcn.0049fe0d
test eax, eax
je 0x49e385
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
mov eax, dword [esp + 0x14]
sub esp, 0x10
mov dword [esp + 0x40], ecx
mov ecx, esp
xor edx, edx
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], esi
sub esp, 0x10
mov ecx, esp
shr eax, 1
dec eax
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x40]
push eax
push edi
push ecx
call fcn.0049fa3b
mov edx, dword [esp + 0x4c]
add esp, 0x2c
push edx
call fcn.0049fe61
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 4]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], ebx
call fcn.0049fe0d
cmp eax, ebx
je 0x49e3fa
mov dword [edi + 8], eax
mov edx, dword [edi + 4]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0
call fcn.0049fe91
test eax, eax
je 0x49e41b
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
mov edx, dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x10]
push ebx
push ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
push 0
mov dword [esp + 0x40], eax
push 0
lea ecx, [esp + 0x30]
lea eax, [esp + 0x38]
mov dword [esp + 0x40], edx
call fcn.00482b0b
mov edx, dword [esp + 0x20]
push edx
call fcn.0049fe61
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x10], ebx
cmp ecx, 2
jne 0x49e4fb
mov ecx, dword [edi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.0049fe91
cmp eax, ebx
je 0x49e488
mov dword [edi + 8], eax
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 4]
lea edx, [esp + 0x10]
push edx
shr ebx, 1
push eax
dec ebx
mov dword [esp + 0x18], 0
call fcn.0049fe0d
test eax, eax
je 0x49e4ac
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
mov eax, dword [esp + 0x10]
sub esp, 0x10
mov dword [esp + 0x40], ecx
mov ecx, esp
xor edx, edx
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], esi
sub esp, 0x10
mov ecx, esp
shr eax, 1
dec eax
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
push 0
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.0049fa3b
add esp, 0x2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.0049fe0d
cmp eax, ebx
je 0x49e510
mov dword [edi + 8], eax
mov ecx, dword [edi + 4]
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 0
call fcn.0049fe91
test eax, eax
je 0x49e531
mov dword [edi + 8], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x48]
mov ecx, dword [esp + 0x18]
mov esi, dword [esi + 0x4c]
push 0
push 0
push 0
push 2
push ebx
push edx
mov edx, dword [esp + 0x2c]
push 0
push 0
push ecx
push edx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
push eax
mov eax, dword [edi + 4]
push eax
push ecx
call fcn.0049fe13
test eax, eax
je 0x49e56b
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4