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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7d08a9
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
push ebx
push esi
push edi
mov eax, dword [0x8c8ca0]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
cmp dword [ebp + 0xc], 0
je 0x4e1c2a
mov edi, dword [ebp + 8]
test edi, edi
je 0x4e1c2a
mov ecx, dword [ecx + 0x10]
mov byte [esp + 0x17], 1
call fcn.004e445c
mov dword [esp + 0x50], eax
test eax, eax
je 0x4e1c2a
push dword [ecx + 0x20]
call dword [0x7daa84]
push eax
call fcn.005469a0
mov ebx, eax
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x4e1c2a
mov esi, dword [0x7da134]
push 0x58
push dword [edi + 8]
call esi
push 0x5a
push dword [edi + 8]
call esi
push 8
push dword [edi + 8]
call esi
push 0xa
push dword [edi + 8]
mov dword [esp + 0x28], eax
call esi
push 0x58
push dword [edi + 8]
mov dword [esp + 0x40], eax
call esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
push 0x58
push dword [ebx + 8]
fstp qword [esp + 0x34]
call esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
push 0x5a
push dword [edi + 8]
fdivr qword [esp + 0x34]
fstp qword [esp + 0x2c]
call esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
push 0x5a
push dword [ebx + 8]
fstp qword [esp + 0x34]
call esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
lea esi, [esp + 0x5c]
fdivr qword [esp + 0x2c]
fstp qword [esp + 0x6c]
call fcn.004e6675
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
fmul qword [esp + 0x24]
mov dword [esp + 0x2c], eax
call fcn.006491e0
fild dword [esp + 0x2c]
mov dword [esp + 0x18], eax
fmul qword [esp + 0x6c]
call fcn.006491e0
mov ecx, eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x38]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov ebx, eax
sar esi, 1
sar ebx, 1
xor eax, eax
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
fld1
cmp eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
fstp qword [edx + 8]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
jg 0x4e1941
cmp ecx, dword [esp + 0x38]
jg 0x4e1941
cmp byte [edx + 5], 0
je 0x4e19a3
cmp eax, dword [esp + 0x20]
jl 0x4e1906
cmp ecx, dword [esp + 0x38]
jge 0x4e19a3
lea ecx, [esp + 0x6c]
lea eax, [esp + 0x5c]
call fcn.004e1516
mov eax, dword [esp + 0x1c]
fst qword [eax + 8]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul st(1)
call fcn.006491e0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
jmp 0x4e197a
lea ecx, [esp + 0x6c]
lea eax, [esp + 0x5c]
call fcn.004e1516
mov eax, dword [esp + 0x1c]
fst qword [eax + 8]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul st(1)
call fcn.006491e0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmulp st(1)
call fcn.006491e0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x24]
sar esi, 1
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, dword [edi]
push 7
mov ecx, edi
call dword [eax + 0x34]
push dword [esp + 0x2c]
mov eax, dword [edi]
push dword [esp + 0x14]
lea ecx, [esp + 0x74]
push ecx
mov ecx, edi
call dword [eax + 0x48]
push dword [esp + 0x24]
mov eax, dword [edi]
push dword [esp + 0x1c]
lea ecx, [esp + 0x74]
push ecx
mov ecx, edi
call dword [eax + 0x40]
mov eax, dword [edi]
push ebx
push esi
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call dword [eax + 0x38]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x40]
push ecx
push dword [eax + 0x20]
call dword [0x7daa88]
xor ebx, ebx
mov esi, vtable.CBitmap.0
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], esi
mov dword [esp + 0x110], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], esi
mov byte [esp + 0x110], 1
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
lea ecx, [esp + 0x54]
push eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
push eax
push dword [esp + 0x3c]
call fcn.00465bd2
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
lea ecx, [esp + 0x80]
push eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
push eax
push dword [esp + 0x3c]
call fcn.00465bd2
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x90]
push eax
call fcn.004e08d1
push ebx
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0x11c], 2
call fcn.00420ac5
mov byte [esp + 0x110], 3
push dword [edi + 8]
mov ebx, dword [0x7da2f4]
call ebx
cmp eax, 3
je 0x4e1ab9
push 3
mov ecx, edi
call fcn.005460f6
push dword [esp + 0xa4]
call ebx
cmp eax, 3
je 0x4e1ad5
push 3
lea ecx, [esp + 0xa0]
call fcn.005460f6
lea eax, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + 0x10]
call fcn.004e4213
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x10]
push 0x34
push dword [esp + 0xa4]
push 0x317
push dword [eax + 0x20]
call dword [0x7daa5c]
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4e1b8b
cmp byte [esp + 0x17], 0
je 0x4e1b8b
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x2c]
push eax
add ecx, 0x28
call fcn.00402099
mov edx, dword [eax]
test edx, edx
je 0x4e1b84
push edx
mov ecx, ebx
call fcn.004e0f43
test al, al
je 0x4e1b55
mov ecx, dword [ebx + 0x10]
lea eax, [esp + 0x9c]
call fcn.004e0f82
mov byte [esp + 0x17], al
jmp 0x4e1b84
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4e1b62
and dword [esp + 0x10], eax
jmp 0x4e1b69
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x10], ecx
push 0
call fcn.004e6671
push eax
lea eax, [esp + 0xa4]
push eax
push dword [esp + 0x1c]
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
cmp dword [esp + 0x2c], 0
jne 0x4e1b16
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
push 0xcc0020
xor edx, edx
push edx
push edx
push dword [esp + 0xac]
push eax
push ecx
push edx
push edx
push dword [edi + 4]
call dword [0x7da13c]
mov ecx, dword [esp + 0x34]
push dword [ecx + 4]
mov eax, dword [ebx + 0x10]
push dword [eax + 0x20]
call dword [0x7daa6c]
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x114], 2
call fcn.00420d33
lea ecx, [esp + 0x88]
mov byte [esp + 0x110], 1
call fcn.004e0912
mov byte [esp + 0x110], 0
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], esi
call fcn.0040502d
or dword [esp + 0x110], 0xffffffff
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], esi
call fcn.0040502d
mov al, byte [esp + 0x17]
jmp 0x4e1c2c
xor al, al
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8