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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
mov ecx, dword [ebx + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
add eax, ecx
push edi
mov edi, dword [ebx + 4]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebx + 0xc]
add eax, edi
cdq
sub eax, edx
mov edx, dword [ebx]
sub ecx, edx
sar eax, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
fild dword [esp + 0x10]
mov eax, dword [ebp + 0x14]
sar esi, 1
fimul dword [eax + 0x1c]
mov dword [esp + 0x14], esi
fmul qword [0x51cf10]
call sub.MSVCRT.dll__ftol
sub esi, eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 0x14]
sub edi, eax
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fimul dword [ecx + 0x20]
fmul qword [0x51cf10]
call sub.MSVCRT.dll__ftol
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x48]
sub edi, eax
mov eax, dword [ebp + 0xc]
push edx
push 4
push eax
call fcn.004403b0
lea ecx, [esp + 0x48]
push ebx
push ecx
call sub.CRLUTL110.dll__UTLUnionRect_8
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x54]
mov eax, esi
sub eax, edx
sub ecx, ebx
cdq
mov ebx, eax
mov eax, dword [esp + 0x50]
xor ebx, edx
sub ebx, edx
mov edx, dword [esp + 0x48]
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add ebx, eax
mov eax, edi
sub eax, edx
mov dword [esp + 0x14], ebx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
add eax, edx
cmp eax, ebx
jle 0x49bde3
mov ebx, eax
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], ebx
fild dword [esp + 0x14]
movsx ecx, word [eax + 0x14]
shl ecx, 1
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fmul st(1)
fmul qword [0x51cf18]
fsubr st(1)
call sub.MSVCRT.dll__ftol
cmp eax, ebx
mov dword [esp + 0x14], eax
fstp st(0)
mov ecx, eax
jl 0x49be19
mov ecx, ebx
test ecx, ecx
jge 0x49be27
mov dword [esp + 0x14], 0
jmp 0x49be2f
cmp eax, ebx
jl 0x49be2f
mov dword [esp + 0x14], ebx
mov edx, dword [ebp + 0x14]
movsx eax, word [edx + 0x24]
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
jne 0x49be49
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 8]
push 0
push 0
push 6
mov edx, dword [ecx]
call dword [edx + 0x188]
test eax, eax
je 0x49beaf
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x38]
xor eax, eax
push edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [ecx]
push edx
push 2
mov dword [esp + 0x40], ebx
call dword [eax + 0xd4]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jge 0x49beaf
cmp eax, 2
mov dword [esp + 0x1c], 2
jl 0x49beaf
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x1c]
test ecx, ecx
mov word [eax + 0x24], dx
je 0x49bee6
mov ebx, dword [ebp + 0x20]
push ebx
push 0
push ecx
push edx
push eax
push 0
call dword [sym.imp.CRLCLR110.dll_int___cdecl_CMGMakeInterColorSpecsEx_int__struct_CGE_FOUNTAINFILL___int__struct_CLR_BUFFERS___unsigned_short_int___class_WAppColorInfo__]
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x49bf10
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
jmp 0x49bf10
mov ecx, dword [ebp + 0x20]
push ecx
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
push 0
call dword [sym.imp.CRLCLR110.dll_int___cdecl_CMGMakeInterColorSpecs_int__struct_CGE_FOUNTAINFILL___int__struct_HMEM______class_WAppColorInfo__]
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x49bf10
mov edx, dword [esp + 0x24]
push edx
call sub.CRLUTL110.dll__MEMMANLock_4
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0x14]
mov ax, word [esp + 0x18]
test ebx, ebx
mov word [ecx + 0x24], ax
je 0x49c113
lea edx, [esp + 0xb0]
push edx
call sub.CRLUTL110.dll__UTLGetIdentityMatrix_4
mov eax, dword [ebp + 0x14]
push edi
push esi
lea edx, [esp + 0xb8]
mov ecx, dword [eax + 0x18]
push ecx
push edx
call sub.CRLUTL110.dll__UTLRotateMatrixAround_16
fild dword [esp + 0x14]
fild dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x14], eax
fdivr st(1)
fstp qword [esp + 0x38]
fstp qword [esp + 0x28]
jl 0x49c10e
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
fld qword [esp + 0x28]
fsub qword [esp + 0x38]
fst qword [esp + 0x28]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov eax, ecx
neg eax
lea edx, [eax + esi]
add eax, edi
mov dword [esp + 0x70], edx
mov dword [esp + 0x58], edx
lea edx, [ecx + esi]
add ecx, edi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x68], edx
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x58]
cmp ecx, eax
mov dword [esp + 0x78], edx
jne 0x49bfe1
mov eax, 5
mov dword [esp + 0x20], eax
jmp 0x49c09b
mov eax, ebx
neg eax
mov dword [esp + 0x20], eax
add eax, esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd qword [esp + 0x38]
call sub.MSVCRT.dll__ftol
lea ecx, [ebx + esi]
mov dword [esp + 0x98], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x80], eax
fild dword [esp + 0x10]
fsub qword [esp + 0x38]
call sub.MSVCRT.dll__ftol
lea edx, [ebx + edi]
mov dword [esp + 0x90], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x88], eax
fild dword [esp + 0x10]
fsub qword [esp + 0x38]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x8c], eax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x20]
add eax, edi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd qword [esp + 0x38]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x20], 0xa
mov dword [esp + 0x9c], eax
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x49c0bc
push eax
lea edx, [esp + 0xb4]
lea eax, [esp + 0x5c]
push edx
push eax
call sub.CRLUTL110.dll__UTLTransformPoint_12
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x58]
mov dword [esp + eax*8 + 0x58], ecx
mov edx, dword [esp + 0x5c]
mov ecx, dword [ebp + 8]
mov dword [esp + eax*8 + 0x5c], edx
inc eax
mov edx, dword [ecx]
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [ebp + 8]
push eax
lea eax, [esp + 0x60]
push eax
call dword [edx + pe_nt_image_headers32]
test eax, eax
jne 0x49c13b
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
add edx, 0xc
cmp eax, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jle 0x49bf76
mov ebx, 1
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x49c132
mov eax, dword [esp + 0x24]
test eax, eax
je 0x49c132
push eax
call sub.CRLUTL110.dll__MEMMANUnlock_4
mov ecx, dword [esp + 0x24]
push ecx
call sub.CRLUTL110.dll__MEMMANFree_4
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
jmp 0x49c113