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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7ccbb9
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push ebx
push esi
push edi
mov eax, dword [0x8c8ca0]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
cmp dword [ebp + 0xc], 0
mov byte [esp + 0x1b], 1
je 0x4e0f29
mov edi, dword [ebp + 8]
test edi, edi
je 0x4e0f29
mov ecx, dword [0x913cd0]
test ecx, ecx
je 0x4e0f29
mov eax, dword [0x913cc0]
test eax, eax
je 0x4e0f29
mov eax, dword [eax + 0x2ab8]
mov dword [esp + 0x70], eax
test eax, eax
je 0x4e0f29
push dword [ecx + 0x20]
call dword [0x7daa84]
push eax
call fcn.005469a0
mov ebx, eax
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x4e0f29
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 + 0x50], eax
call esi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
push 0x58
push dword [ebx + 8]
fstp qword [esp + 0x3c]
call esi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
push 0x5a
push dword [edi + 8]
fdivr qword [esp + 0x3c]
fstp qword [esp + 0x2c]
call esi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
push 0x5a
push dword [ebx + 8]
fstp qword [esp + 0x3c]
call esi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov eax, dword [0x913cd0]
lea esi, [esp + 0x50]
fdivr qword [esp + 0x34]
fstp qword [esp + 0x84]
call fcn.0041a6b8
mov eax, dword [0x913cc0]
xor ecx, ecx
cmp eax, ecx
je 0x4e0b40
cmp dword [eax + 0x124], 3
jne 0x4e0b40
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x913cd0]
push dword [eax + 0x20]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
call dword [0x7daa80]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
add ecx, dword [esp + 0x50]
add eax, dword [esp + 0x54]
jmp 0x4e0b48
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x50]
sub eax, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
mov dword [esp + 0x34], eax
fmul qword [esp + 0x24]
call fcn.006491e0
fild dword [esp + 0x34]
mov dword [esp + 0x1c], eax
fmul qword [esp + 0x84]
call fcn.006491e0
fld1
mov ecx, eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x48]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x2c]
sar esi, 1
sar ebx, 1
cmp eax, dword [esp + 0x20]
fstp qword [edx + 8]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
jg 0x4e0c42
cmp ecx, dword [esp + 0x48]
jg 0x4e0c42
cmp byte [edx + 5], 0
je 0x4e0ca7
cmp eax, dword [esp + 0x20]
jl 0x4e0c04
cmp ecx, dword [esp + 0x48]
jge 0x4e0ca7
lea ecx, [esp + 0x50]
lea eax, [esp + 0x84]
call fcn.004e1516
mov eax, dword [esp + 0x2c]
fst qword [eax + 8]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul st(1)
call fcn.006491e0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
jmp 0x4e0c7e
lea ecx, [esp + 0x50]
lea eax, [esp + 0x84]
call fcn.004e1516
mov eax, dword [esp + 0x2c]
fst qword [eax + 8]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul st(1)
call fcn.006491e0
mov dword [esp + 0x1c], 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 + 0x1c]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x48]
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 + 0x34]
mov eax, dword [edi]
push dword [esp + 0x18]
lea ecx, [esp + 0x8c]
push ecx
mov ecx, edi
call dword [eax + 0x48]
push dword [esp + 0x24]
mov eax, dword [edi]
push dword [esp + 0x20]
lea ecx, [esp + 0x8c]
push ecx
mov ecx, edi
call dword [eax + 0x40]
mov eax, dword [edi]
push ebx
push esi
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call dword [eax + 0x38]
lea eax, [esp + 0x60]
push eax
mov eax, dword [0x913cd0]
push dword [eax + 0x20]
call dword [0x7daa88]
xor ebx, ebx
mov esi, vtable.CBitmap.0
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x120], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], esi
mov byte [esp + 0x120], 1
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
lea ecx, [esp + 0x74]
push eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
push eax
push dword [esp + 0x38]
call fcn.00465bd2
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
lea ecx, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
push eax
push dword [esp + 0x38]
call fcn.00465bd2
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x34]
lea eax, [esp + 0xa0]
push eax
call fcn.004e08d1
push ebx
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0xb4]
push eax
mov byte [esp + 0x12c], 2
call fcn.00420ac5
mov byte [esp + 0x120], 3
push dword [edi + 8]
mov ebx, dword [0x7da2f4]
call ebx
cmp eax, 3
je 0x4e0dbb
push 3
mov ecx, edi
call fcn.005460f6
push dword [esp + 0xb4]
call ebx
cmp eax, 3
je 0x4e0dd7
push 3
lea ecx, [esp + 0xb0]
call fcn.005460f6
mov ecx, dword [0x913cd0]
mov eax, dword [ecx]
lea edx, [esp + 0xac]
push edx
call dword [eax + 0x174]
mov eax, dword [0x913cd0]
push 0x34
push dword [esp + 0xb4]
push 0x317
push dword [eax + 0x20]
call dword [0x7daa5c]
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x2c]
xor ebx, ebx
mov dword [esp + 0x34], eax
cmp eax, ebx
je 0x4e0e91
cmp byte [esp + 0x1b], bl
je 0x4e0e91
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x34]
push eax
add ecx, 0x28
call fcn.00402099
mov edx, dword [eax]
cmp edx, ebx
je 0x4e0e8b
mov ecx, dword [esp + 0x2c]
push edx
call fcn.004e0f43
test al, al
je 0x4e0e5d
mov ecx, dword [0x913cd0]
lea eax, [esp + 0xac]
call fcn.004e0f82
mov byte [esp + 0x1b], al
jmp 0x4e0e8b
mov eax, dword [0x913cd0]
cmp eax, ebx
jne 0x4e0e6c
mov dword [esp + 0x14], ebx
jmp 0x4e0e73
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x14], ecx
push ebx
add eax, 0x58
push eax
lea eax, [esp + 0xb4]
push eax
push dword [esp + 0x20]
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
cmp dword [esp + 0x34], ebx
jne 0x4e0e1a
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
sub ecx, dword [esp + 0x60]
push 0xcc0020
push ebx
push ebx
push dword [esp + 0xbc]
push eax
push ecx
push ebx
push ebx
push dword [edi + 4]
call dword [0x7da13c]
mov eax, dword [esp + 0x30]
push dword [eax + 4]
mov eax, dword [0x913cd0]
push dword [eax + 0x20]
call dword [0x7daa6c]
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.00420d33
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], 1
call fcn.004e0912
mov byte [esp + 0x120], bl
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], esi
call fcn.0040502d
or dword [esp + 0x120], 0xffffffff
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], esi
call fcn.0040502d
mov al, byte [esp + 0x1b]
jmp 0x4e0f2b
xor al, al
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8