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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x24], 0
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov dword [esp + 0x10], eax
add eax, ecx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov dword [esp + 0x18], eax
add eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x18]
sub ecx, edx
sub esi, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fild dword [eax + 0x1c]
sar edi, 1
sar ebx, 1
fmul st(1)
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
fmul qword [0x51cf10]
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebp + 0x10]
mov esi, ebx
fild dword [esp + 0x18]
fild dword [ecx + 0x20]
sub esi, eax
fmul st(1)
fmul qword [0x51cf10]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x1c]
sub edi, eax
mov eax, edi
sub esp, 8
sub eax, edx
sub esp, 8
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x20], eax
mov eax, esi
fild dword [esp + 0x20]
fxch st(1)
fmul qword [0x51be90]
sub eax, ebx
cdq
faddp st(1)
xor eax, edx
sub eax, edx
fstp qword [esp + 8]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fxch st(1)
fmul qword [0x51be90]
faddp st(1)
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll__hypot]
fadd qword [0x5202c8]
add esp, 0x10
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebp + 0x10]
mov ebx, eax
mov dword [esp + 0x18], ebx
movsx eax, word [ecx + 0x24]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x49b964
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x20], edx
mov eax, edx
mov edx, dword [ebp + 0x18]
test edx, edx
mov edx, dword [ebp + 0x1c]
push edx
je 0x49b999
mov edx, dword [ebp + 0x18]
push 0
push edx
push eax
push ecx
push 0
call dword [sym.imp.CRLCLR110.dll_int___cdecl_CMGMakeInterColorSpecsEx_int__struct_CGE_FOUNTAINFILL___int__struct_CLR_BUFFERS___unsigned_short_int___class_WAppColorInfo__]
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
je 0x49bcc5
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
jmp 0x49b9c5
lea edx, [esp + 0x28]
push edx
push eax
push ecx
push 0
call dword [sym.imp.CRLCLR110.dll_int___cdecl_CMGMakeInterColorSpecs_int__struct_CGE_FOUNTAINFILL___int__struct_HMEM______class_WAppColorInfo__]
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
je 0x49bccc
mov eax, dword [esp + 0x24]
push eax
call sub.CRLUTL110.dll__MEMMANLock_4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
cmp eax, 2
jne 0x49bab7
lea ecx, [esp + 0x90]
push ecx
call sub.CRLUTL110.dll__UTLGetIdentityMatrix_4
mov edx, dword [ebp + 0x10]
push edi
push esi
lea ecx, [esp + 0x98]
mov eax, dword [edx + 0x18]
push eax
push ecx
call sub.CRLUTL110.dll__UTLRotateMatrixAround_16
lea eax, [ebx + edi]
lea edx, [esp + 0x90]
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], eax
push 5
lea eax, [esp + 0x2c]
lea ecx, [ebx + esi]
sub edi, ebx
push edx
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x54], esi
call sub.CRLUTL110.dll__UTLTransformPoint_12
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
add eax, 0xc
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x2c]
push 5
push eax
call dword [edx + pe_nt_image_headers32]
mov ecx, dword [esp + 0x10]
mov eax, esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x90]
push 5
lea edx, [esp + 0x2c]
sub eax, ebx
push ecx
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x54], eax
call sub.CRLUTL110.dll__UTLTransformPoint_12
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
push edx
lea edx, [esp + 0x2c]
mov eax, dword [ecx]
push 5
push edx
call dword [eax + pe_nt_image_headers32]
jmp 0x49bcbd
lea ecx, [eax - 1]
mov eax, 0xaba9500
cdq
fild dword [esp + 0x18]
idiv ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x68], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x6c], edi
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x5c], eax
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
sub ecx, eax
fild dword [esp + 0x10]
mov dword [esp + 0x14], ecx
fmul qword [0x51cd20]
fmul qword [0x51cf28]
fcos
fdivp st(1)
fstp qword [esp + 0x50]
fild dword [esp + 0x14]
fmul qword [0x51cd20]
fmul qword [0x51cf28]
fld st(0)
fcos
fmul qword [esp + 0x50]
call sub.MSVCRT.dll__ftol
fsin
mov ebx, eax
add ebx, esi
mov dword [esp + 0x30], ebx
fmul qword [esp + 0x50]
call sub.MSVCRT.dll__ftol
lea ecx, [esi + esi]
mov edx, dword [esp + 0x10]
sub ecx, ebx
add eax, edi
mov dword [esp + 0x70], ecx
lea ecx, [edi + edi]
sub ecx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x20]
add edx, ecx
cmp eax, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x18], 1
jle 0x49bcbd
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
lea edx, [eax + eax*2]
mov dword [esp + 0x10], ecx
lea ecx, [ecx + edx*4 - 0xc]
mov dword [esp + 0x1c], ecx
jmp 0x49bbb0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
dec eax
cmp ecx, eax
jne 0x49bbd1
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
lea eax, [esi + esi]
sub eax, edx
mov dword [esp + 0x38], eax
lea eax, [edi + edi]
sub eax, ecx
jmp 0x49bc01
fild dword [esp + 0x14]
fmul qword [0x51cd20]
fmul qword [0x51cf28]
fld st(0)
fcos
fmul qword [esp + 0x50]
call sub.MSVCRT.dll__ftol
fsin
add eax, esi
mov dword [esp + 0x38], eax
fmul qword [esp + 0x50]
call sub.MSVCRT.dll__ftol
add eax, edi
mov edx, dword [ebx]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
push 4
push ecx
mov ecx, ebx
call dword [edx + pe_nt_image_headers32]
mov ecx, dword [esp + 0x30]
lea eax, [esi + esi]
mov edx, eax
sub edx, ecx
lea ecx, [edi + edi]
mov dword [esp + 0x70], edx
mov edx, ecx
sub edx, dword [esp + 0x34]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x38]
sub eax, edx
lea edx, [esp + 0x68]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x3c]
sub ecx, eax
mov eax, dword [ebx]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x10]
push ecx
push 4
push edx
mov ecx, ebx
call dword [eax + pe_nt_image_headers32]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
add edx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
mov ecx, 0xc
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x18]
sub edx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
add edx, ecx
mov ecx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x10], edx
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x49bbac
mov dword [esp + 0x14], 1
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x49bce4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x49bce4
push eax
call sub.CRLUTL110.dll__MEMMANUnlock_4
mov edx, dword [esp + 0x24]
push edx
call sub.CRLUTL110.dll__MEMMANFree_4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret