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

Disassembly:
push 0xffffffffffffffff
push 0x5b3a76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4e4
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x24]
call fcn.005967ee
mov eax, dword [ebp + 0x1c]
xor esi, esi
push eax
mov dword [esp + 0x500], esi
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00596890
lea ecx, [esp + 0x98]
mov ebx, eax
call fcn.00421860
mov ecx, dword [esp + 0x508]
mov edx, dword [0x62cf08]
mov byte [esp + 0x4fc], 1
mov eax, dword [edx + ecx*4 + 0x2b4]
mov ecx, dword [esp + 0x504]
cmp ecx, esi
mov dword [esp + 0x10], eax
je 0x4aeffc
cmp eax, esi
je 0x4aeffc
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], eax
call fcn.005968a5
mov edx, dword [ebp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebx + 8]
mov edi, dword [sym.imp.GDI32.dll_LPtoDP]
lea eax, [esp + 0x14]
push 2
push eax
push ecx
call edi
mov eax, dword [ebx + 8]
lea edx, [esp + 0x14]
push 2
push edx
push eax
call edi
mov edx, dword [esp + 0x14]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
push esi
sub ecx, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
lea eax, [esp + 0x68]
push esi
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x74]
push esi
push ecx
push edx
mov dword [esp + 0x80], 0x28
mov word [esp + 0x8c], 1
mov word [esp + 0x8e], 0x18
mov dword [esp + 0x90], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, esi
mov dword [esp + 0x54], eax
je 0x4aed2a
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
lea ecx, [esp + 0x28]
call fcn.00596b0b
mov eax, dword [ebx + 8]
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x30]
call dword [edx + 0x48]
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x5c]
push eax
push ecx
lea ecx, [esp + 0x30]
call dword [edx + 0x40]
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x14]
push 2
push eax
push ecx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x94]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00596c75
mov edx, dword [0x62cf08]
lea ecx, [esp + 0x24]
mov eax, dword [edx + 0x118]
push eax
call fcn.00596a7f
mov ecx, dword [ebp + 0xfc]
mov eax, dword [ebp + 0xf8]
push ecx
push eax
push 2
mov edx, dword [ebp + 0xf0]
sub esp, 0x10
mov esi, dword [ebp + 0xf4]
mov edi, esp
add edx, eax
add esi, ecx
mov dword [edi], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 4], ecx
lea ecx, [esp + 0x40]
push ecx
push eax
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.00435c10
mov esi, dword [esi + 0x28]
test esi, esi
je 0x4aee68
mov eax, esi
mov esi, dword [esi]
mov edi, dword [eax + 8]
mov eax, dword [edi + 4]
cmp eax, 0x28
ja case.0x4aee34.2
xor edx, edx
mov dl, byte [eax + 0x4af04c]
jmp dword [edx*4 + 0x4af040]
mov ecx, dword [edi + 0xa0]
test ecx, ecx
je case.0x4aee34.2
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne case.0x4aee34.2
mov eax, dword [ebp + 0x1c]
mov edx, dword [edi]
lea ecx, [ebp + 0x40]
push 0
push ecx
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, edi
call dword [edx + 0xc]
test esi, esi
jne 0x4aee1d
lea edx, [esp + 0x40]
mov ecx, ebp
push edx
call fcn.004af4e0
mov esi, dword [esp + 0x504]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
sub ecx, edi
push 0x18
sub edx, eax
push ecx
push edx
mov ecx, esi
call fcn.00421a60
lea ecx, [esp + 0x98]
call fcn.00421980
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
push 0x18
sub ecx, esi
push eax
push ecx
lea ecx, [esp + 0xa4]
call fcn.00421a60
mov al, byte [esp + 0x4c4]
test al, al
mov eax, dword [esp + 0x4cc]
jne 0x4aeeea
mov eax, dword [esp + 0x4c8]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
sub edx, edi
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
sub eax, edx
push eax
push 0
push 0
push ecx
call fcn.004b161f
add esp, 0x18
test eax, eax
je 0x4aefcf
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
sub eax, esi
mov edi, dword [esp + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x44]
sub ecx, eax
lea eax, [esi + esi*2]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
sub eax, edi
mov dword [esp + 0x58], edx
test ecx, ecx
lea eax, [eax + eax*2]
mov dword [esp + 0x34], eax
jle 0x4aefcf
xor edi, edi
imul eax, dword [esp + 0x44]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x10], ecx
mov cl, byte [esp + 0x4c4]
test cl, cl
mov ecx, dword [esp + 0x4cc]
jne 0x4aef79
mov ecx, dword [esp + 0x4c8]
lea esi, [eax + ecx]
mov ecx, dword [esp + 0x60]
add esi, ecx
mov ecx, dword [esp + 0x504]
cmp byte [ecx + 0x42c], 0
je 0x4aef9a
mov ecx, dword [ecx + 0x434]
jmp 0x4aefa0
mov ecx, dword [ecx + 0x430]
add edi, ecx
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x58]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
add edi, edx
add eax, esi
dec ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x10], ecx
jne 0x4aef60
lea ecx, [esp + 0x24]
call fcn.005968dc
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x98]
mov byte [esp + 0x4fc], 0
call fcn.00421920
lea ecx, [esp + 0x24]
mov dword [esp + 0x4fc], 0xffffffff
call fcn.00596923
mov ecx, dword [esp + 0x4f4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4f0
ret 8