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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
fldz
sub esp, 0xb4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0xb8], 0
jne 0x49d0bc
cmp dword [edi + 0xbc], 0
je 0x49d164
lea eax, [esp + 0xb8]
fstp st(0)
push eax
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0xac]
push eax
mov ecx, esi
call fcn.004a45c0
fldz
fcom qword [esp + 0xa0]
fnstsw ax
test ah, 5
jp 0x49d138
fld qword [esp + 0xa8]
fabs
fld qword [0x5c4c98]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x49d136
fld qword [esp + 0xb0]
fabs
fcompp
fnstsw ax
test ah, 5
jp 0x49d138
fcom qword [esp + 0xb8]
fnstsw ax
test ah, 0x41
jne 0x49d138
mov eax, 1
jmp 0x49d13a
fstp st(0)
xor eax, eax
cmp dword [edi + 0xb8], 0
je 0x49d147
test eax, eax
jne 0x49d154
cmp dword [edi + 0xbc], 0
je 0x49d164
test eax, eax
jne 0x49d164
fstp st(0)
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
mov eax, dword [esi + 0x1ec]
mov dword [esp + 0x50], eax
test eax, eax
jne 0x49d17d
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
fld qword [esi + 0x20]
mov ebx, dword [edi + 0xf0]
fmul st(1)
add eax, 0xc
fld qword [esi + 0x10]
mov dword [esp + 0x58], eax
fmul st(2)
faddp st(1)
fadd qword [esi + 0x30]
fstp qword [esp + 0x78]
fld qword [esi + 0x28]
fmul st(1)
fld qword [esi + 0x18]
fmul st(2)
faddp st(1)
fadd qword [esi + 0x38]
fstp qword [esp + 0x70]
test ebx, ebx
jle 0x49d1ee
mov ecx, dword [edi + 0xd0]
fstp st(0)
fld qword [esi + 0x28]
sub esp, 0x20
fstp qword [esp + 0x18]
fld qword [esi + 0x20]
fstp qword [esp + 0x10]
fld qword [esi + 0x18]
fstp qword [esp + 8]
fld qword [esi + 0x10]
fstp qword [esp]
push eax
call fcn.00498100
fldz
test eax, eax
jne 0x49d617
mov eax, dword [esp + 0x58]
mov edx, 1
cmp ebx, edx
jle 0x49d298
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
lea ecx, [edi + 0xd4]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx]
mov ebx, dword [esp + 0x5c]
cmp dword [ecx], ebx
jne 0x49d259
mov ebx, dword [ecx + 4]
cmp ebx, dword [eax + 4]
jne 0x49d259
fld qword [esi + 0x10]
fcomp qword [ecx + 8]
fnstsw ax
test ah, 0x44
jp 0x49d255
fld qword [esi + 0x18]
fcomp qword [ecx + 0x10]
fnstsw ax
test ah, 0x44
jp 0x49d255
fld qword [esi + 0x20]
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 0x44
jp 0x49d255
fld qword [esi + 0x28]
fcomp qword [ecx + 0x20]
fnstsw ax
test ah, 0x44
jnp 0x49d269
mov eax, dword [esp + 0x58]
add dword [esp + 0x48], 4
inc edx
cmp edx, dword [edi + 0xf0]
jge 0x49d298
jmp 0x49d20b
mov ecx, dword [edi + edx*4 + 0xd0]
lea eax, [edi + edx*4 + 0xd0]
mov dword [esp + 0x5c], ecx
mov ecx, edx
test edx, edx
jle 0x49d28e
mov ebx, dword [eax - 4]
mov dword [eax], ebx
dec ecx
sub eax, 4
test ecx, ecx
jg 0x49d281
mov eax, dword [esp + 0x5c]
mov dword [edi + 0xd0], eax
mov eax, dword [edi + 0xf0]
cmp edx, eax
jl 0x49d617
cmp eax, 8
jne 0x49d2da
mov ebx, dword [edi + 0xec]
test ebx, ebx
je 0x49d2d4
mov ecx, dword [ebx + 0x48]
fstp st(0)
push ecx
call fcn.00497230
mov edx, dword [ebx + 0x4c]
push edx
call fcn.00497230
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
fldz
add esp, 0xc
dec dword [edi + 0xf0]
mov ecx, dword [edi + 0xf0]
test ecx, ecx
jle 0x49d2f8
lea eax, [edi + ecx*4 + 0xd0]
mov edx, dword [eax - 4]
mov dword [eax], edx
dec ecx
sub eax, 4
test ecx, ecx
jg 0x49d2eb
mov eax, dword [esp + 0x50]
fld st(0)
mov ecx, dword [esp + 0x50]
mov ebx, 1
add dword [edi + 0xf0], ebx
fcomp qword [eax + 0x60]
fnstsw ax
test ah, 0x44
jp 0x49d36e
fld st(0)
fcomp qword [ecx + 0x68]
fnstsw ax
test ah, 0x44
jp 0x49d36e
fcom qword [ecx + 0x70]
fnstsw ax
test ah, 0x44
jp 0x49d36e
fcomp qword [ecx + 0x78]
fnstsw ax
test ah, 0x44
jp 0x49d370
fld qword [esp + 0x78]
xor ebx, ebx
fsub qword [0x5c4d98]
fst qword [esp + 0x48]
fadd qword [0x5c4d90]
fstp qword [esp + 0x68]
fld qword [esp + 0x70]
fadd qword [0x5c4d88]
fst qword [esp + 0x60]
fsub qword [0x5c4d80]
fstp qword [esp + 0x50]
jmp 0x49d51c
fstp st(0)
fld qword [ecx + 0x60]
fld qword [ecx + 0x68]
fld qword [esi + 0x20]
fmul st(1)
fld qword [esi + 0x10]
fmul st(3)
faddp st(1)
fadd qword [esi + 0x30]
fst qword [esp + 0x68]
fld st(0)
fst qword [esp + 0x48]
fld qword [esi + 0x18]
fmulp st(4)
fld qword [esi + 0x28]
fmulp st(3)
fxch st(3)
faddp st(2)
fxch st(1)
fadd qword [esi + 0x38]
fst qword [esp + 0x60]
fld st(0)
fst qword [esp + 0x50]
fld qword [ecx + 0x60]
fld qword [ecx + 0x78]
fld qword [esi + 0x20]
fmul st(1)
fld qword [esi + 0x10]
fmul st(3)
faddp st(1)
fadd qword [esi + 0x30]
fld qword [esi + 0x18]
fmulp st(3)
fld qword [esi + 0x28]
fmulp st(2)
fxch st(2)
faddp st(1)
fadd qword [esi + 0x38]
fxch st(1)
fcom st(4)
fnstsw ax
test ah, 5
jp 0x49d3e7
fstp st(5)
fxch st(4)
fst qword [esp + 0x48]
jmp 0x49d3fc
fcom st(4)
fnstsw ax
test ah, 0x41
jne 0x49d40f
fstp st(4)
fxch st(3)
fst qword [esp + 0x68]
fxch st(3)
fxch st(4)
fxch st(4)
fcom st(2)
fnstsw ax
test ah, 5
jp 0x49d413
fstp st(1)
fst qword [esp + 0x50]
jmp 0x49d426
fstp st(0)
jmp 0x49d3fa
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x49d461
fstp st(2)
fxch st(1)
fst qword [esp + 0x60]
fxch st(1)
fld qword [ecx + 0x70]
fld qword [ecx + 0x68]
fld qword [esi + 0x20]
fmul st(1)
fld qword [esi + 0x10]
fmul st(3)
faddp st(1)
fadd qword [esi + 0x30]
fld qword [esi + 0x18]
fmulp st(3)
fld qword [esi + 0x28]
fmulp st(2)
fxch st(2)
faddp st(1)
fadd qword [esi + 0x38]
fxch st(1)
fcom st(5)
fnstsw ax
test ah, 5
jp 0x49d465
fstp st(5)
fxch st(4)
fst qword [esp + 0x48]
jmp 0x49d47a
fstp st(0)
jmp 0x49d426
fcom st(4)
fnstsw ax
test ah, 0x41
jne 0x49d48d
fstp st(4)
fxch st(3)
fst qword [esp + 0x68]
fxch st(3)
fxch st(4)
fxch st(4)
fcom st(1)
fnstsw ax
test ah, 5
jp 0x49d491
fstp st(1)
fst qword [esp + 0x50]
jmp 0x49d4a4
fstp st(0)
jmp 0x49d478
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x49d4df
fstp st(2)
fxch st(1)
fst qword [esp + 0x60]
fxch st(1)
fld qword [ecx + 0x70]
fld qword [ecx + 0x78]
fld qword [esi + 0x20]
fmul st(1)
fld qword [esi + 0x10]
fmul st(3)
faddp st(1)
fadd qword [esi + 0x30]
fld qword [esi + 0x18]
fmulp st(3)
fld qword [esi + 0x28]
fmulp st(2)
fxch st(2)
faddp st(1)
fadd qword [esi + 0x38]
fxch st(5)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x49d4e3
fstp st(3)
fxch st(2)
fstp qword [esp + 0x48]
jmp 0x49d4f8
fstp st(0)
jmp 0x49d4a4
fcom st(3)
fnstsw ax
fstp st(3)
test ah, 0x41
jne 0x49d4f6
fxch st(2)
fstp qword [esp + 0x68]
jmp 0x49d4f8
fstp st(2)
fxch st(1)
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x49d50b
fstp st(0)
fstp qword [esp + 0x50]
jmp 0x49d51c
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x49d51a
fstp qword [esp + 0x60]
jmp 0x49d51c
fstp st(0)
push 0x50
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x5c], eax
test eax, eax
je 0x49d60d
fld qword [esp + 0x60]
xor ecx, ecx
cmp dword [edi + 0x68], ecx
setne cl
push ecx
push ebx
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCR90.dll_ceil]
call fcn.00551da0
fld qword [esp + 0x60]
fstp qword [esp]
mov ebx, eax
call sub.MSVCR90.dll_floor
add esp, 8
call fcn.00551da0
fld qword [esp + 0x70]
sub ebx, eax
add ebx, 4
push ebx
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCR90.dll_ceil]
call fcn.00551da0
fld qword [esp + 0x5c]
fstp qword [esp]
mov ebx, eax
call sub.MSVCR90.dll_floor
add esp, 8
call fcn.00551da0
fld qword [esp + 0x5c]
fsub qword [esp + 0x7c]
sub ebx, eax
add ebx, 4
push ebx
sub esp, 8
fstp qword [esp]
call sub.MSVCR90.dll_floor
add esp, 8
call fcn.00551da0
fld qword [esp + 0x58]
fsub qword [esp + 0x88]
sub eax, 2
push eax
sub esp, 8
fstp qword [esp]
call sub.MSVCR90.dll_floor
add esp, 8
call fcn.00551da0
fld qword [esi + 0x28]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
sub eax, 2
push eax
sub esp, 0x20
fstp qword [esp + 0x18]
fld qword [esi + 0x20]
fstp qword [esp + 0x10]
fld qword [esi + 0x18]
fstp qword [esp + 8]
fld qword [esi + 0x10]
fstp qword [esp]
push edx
call fcn.00498160
jmp 0x49d60f
xor eax, eax
fldz
mov dword [edi + 0xd0], eax
mov esi, dword [edi + 0xd0]
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
dec eax
and eax, dword [ebp + 0x2c]
xor ecx, ecx
imul eax, edx
test edx, edx
jle 0x49d65e
mov edx, dword [esi + 0x4c]
lea edx, [edx + eax*4]
mov dword [esp + 0x58], edx
mov ebx, 0x8000
test word [edx + 2], bx
je 0x49d651
movzx edx, word [edx]
cmp edx, dword [ebp + 0x2c]
je 0x49d68b
mov edx, dword [esp + 0x58]
inc ecx
add edx, 4
cmp ecx, dword [esi + 0x44]
mov dword [esp + 0x58], edx
jl 0x49d63a
push 0x38
fstp st(0)
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
xor ecx, ecx
add esp, 4
cmp ebx, ecx
je 0x49d70c
push 0x38
push ecx
push ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, ebx
xor ecx, ecx
jmp 0x49d70e
mov edx, dword [esi + 0x28]
neg edx
mov dword [esp + 0x84], edx
mov edx, dword [esi + 0x2c]
neg edx
mov dword [esp + 0x88], edx
mov edx, dword [esi + 0x30]
mov dword [esp + 0x8c], edx
mov edx, dword [esi + 0x34]
mov dword [esp + 0x90], edx
xor edx, edx
cmp dword [edi + 0x68], edx
mov dword [esp + 0x9c], 0
setne dl
add ecx, eax
imul ecx, dword [esi + 0x3c]
add ecx, dword [esi + 0x48]
lea eax, [esp + 0x84]
push eax
sub esp, 0x10
mov dword [esp + 0xac], ecx
mov ecx, dword [edi + 0xc8]
fst qword [esp + 8]
mov dword [esp + 0xa8], edx
fstp qword [esp]
call fcn.004e2ba0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
xor eax, eax
mov edx, dword [edi + 0xf4]
mov dword [eax + 0x30], edx
mov dx, word [ebp + 0x2c]
mov dword [edi + 0xf4], eax
mov word [eax], dx
mov eax, dword [edi + 0xf4]
mov dword [eax + 0xc], esi
mov edx, dword [edi + 0xf4]
mov dword [edx + 0x10], ecx
mov eax, dword [edi + 0xf4]
mov dword [eax + 0x14], ecx
mov edx, dword [edi + 0xf4]
mov dword [edx + 4], ecx
mov eax, dword [edi + 0xf4]
pop edi
pop esi
mov dword [eax + 8], ecx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x30