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

Disassembly:
push 0xffffffffffffffff
push 0x61a302
mov eax, dword fs:[0]
push eax
sub esp, 0x4fc
push ebp
push esi
push edi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0x50c]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x4e8994
cmp dword [esp + 0x51c], 0xffffffff
jne 0x4e862d
mov eax, dword [esp + 0x52c]
mov ecx, dword [esp + 0x528]
mov edx, dword [esp + 0x520]
push eax
mov eax, dword [esp + 0x528]
push ecx
push ebx
mov ecx, esi
call fcn.004e76b0
jmp 0x4e8996
mov eax, dword [esp + 0x524]
test eax, eax
je 0x4e863f
mov edi, dword [eax]
mov ebp, dword [eax + 4]
jmp 0x4e8645
mov ebp, dword [esi + 0x28]
mov edi, dword [esi + 0x24]
mov eax, dword [esp + 0x520]
test eax, eax
je 0x4e865f
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
jmp 0x4e866b
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esi + 0x24]
mov edx, eax
sub edx, dword [esp + 0x1c]
cmp edi, edx
jle 0x4e867e
sub eax, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esi + 0x28]
mov edx, eax
sub edx, ecx
cmp ebp, edx
jle 0x4e868d
sub eax, ecx
mov ebp, eax
cmp word [esi + 0x2e], 8
jne 0x4e88bd
call fcn.004e7c90
movzx ecx, word [eax + 2]
test ecx, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], ecx
jle 0x4e8602
add eax, 5
jmp 0x4e86c0
movzx edx, byte [eax - 1]
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
shl ecx, 8
or ecx, edx
cmp ecx, dword [esp + 0x51c]
je 0x4e86f2
mov ecx, dword [esp + 0x14]
add ecx, 1
add eax, 4
cmp ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
jl 0x4e86c0
jmp 0x4e8602
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
mov dword [esp + 0x80], eax
je 0x4e8602
lea edx, [esp + 0x84]
push edx
call fcn.004e6580
mov dword [esp + 0x514], 0
call fcn.004e7c90
push eax
push 0
push 8
push 1
push ebp
push edi
lea eax, [esp + 0x9c]
push eax
call fcn.004e6fe0
push 1
xor eax, eax
lea ecx, [esp + 0x88]
call fcn.004e7a20
test ebx, ebx
mov dword [esp + 0x48], eax
jne 0x4e8755
xor ecx, ecx
jmp 0x4e8758
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x52c]
mov eax, dword [eax + 4]
push 0xcc0020
push edx
mov edx, dword [esp + 0x530]
push edx
push ecx
push ebp
push edi
push 0
push 0
push eax
call dword [sym.imp.gdi32.dll_BitBlt]
lea eax, [edi*8 + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
mov ecx, eax
mov eax, dword [esi + 0x24]
lea eax, [eax*8 + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 0x448]
sar ecx, 2
sar eax, 2
add ecx, ecx
add eax, eax
add eax, eax
add ecx, ecx
test ebp, ebp
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x14], 0
jle 0x4e8868
mov edx, ecx
neg edx
mov dword [esp + 0x28], edx
lea edx, [ebp - 1]
imul edx, ecx
add edx, dword [esp + 0x4cc]
mov dword [esp + 0x34], edx
lea ebx, [ebx]
mov ecx, dword [esi + 0x28]
sub ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x20]
sub ecx, 1
imul ecx, eax
add ecx, dword [esp + 0x74]
add ecx, edx
test edi, edi
jle 0x4e8855
mov edx, dword [esp + 0x34]
sub edx, ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x24], edi
lea ecx, [ecx]
mov dl, byte [ecx]
movzx edx, dl
cmp edx, dword [esp + 0x80]
je 0x4e884b
mov al, byte [ecx]
mov edx, dword [esp + 0x78]
mov byte [ecx + edx], al
mov eax, dword [esp + 0x7c]
add ecx, 1
sub dword [esp + 0x24], 1
jne 0x4e8830
mov ecx, dword [esp + 0x28]
add dword [esp + 0x14], 1
add dword [esp + 0x34], ecx
cmp dword [esp + 0x14], ebp
jl 0x4e8800
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x528]
mov edx, dword [ebx + 4]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [esp + 0x53c]
push ebp
push edi
push eax
push ecx
push edx
call dword [sym.imp.gdi32.dll_BitBlt]
lea edi, [esp + 0x84]
call fcn.004e7af0
mov ecx, edi
mov dword [esp + 0x514], 0xffffffff
call fcn.004e6680
mov eax, 1
jmp 0x4e8996
lea ecx, [esp + 0x38]
call fcn.00576f1a
lea ecx, [esp + 0x4c]
mov dword [esp + 0x514], 1
call fcn.00576f1a
lea ecx, [esp + 0x64]
mov byte [esp + 0x514], 2
call fcn.00576f1a
push ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x518], 3
call fcn.004520c0
test eax, eax
je 0x4e895e
push ebx
lea ecx, [esp + 0x3c]
call fcn.004520c0
test eax, eax
je 0x4e895e
push ebx
lea ecx, [esp + 0x68]
call fcn.004520c0
test eax, eax
je 0x4e895e
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], vtable.CBitmap.0
push ebp
push edi
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x520], 4
call fcn.00452090
test eax, eax
jne 0x4e89b1
mov byte [esp + 0x514], 3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.CBitmap.0
call fcn.00424fa0
lea ecx, [esp + 0x64]
mov byte [esp + 0x514], 2
call fcn.0057762c
lea ecx, [esp + 0x4c]
mov byte [esp + 0x514], 1
call fcn.0057762c
lea ecx, [esp + 0x38]
mov dword [esp + 0x514], 0xffffffff
call fcn.0057762c
xor eax, eax
mov ecx, dword [esp + 0x50c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x508
ret 0x14
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00452060
mov dword [esp + 0x28], eax
lea eax, [esi + 0x454]
test eax, eax
je 0x4e8a3e
cmp dword [eax + 4], 0
je 0x4e8a3e
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.00577997
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.gdi32.dll_RealizePalette]
push 0
lea eax, [esi + 0x454]
push eax
lea ecx, [esp + 0x6c]
call fcn.00577997
mov edx, dword [esp + 0x68]
push edx
call dword [sym.imp.gdi32.dll_RealizePalette]
push 0
lea eax, [esi + 0x454]
push eax
lea ecx, [esp + 0x54]
call fcn.00577997
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.gdi32.dll_RealizePalette]
push 0
lea eax, [esi + 0x454]
push eax
mov ecx, ebx
call fcn.00577997
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.gdi32.dll_RealizePalette]
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x68]
push edx
push eax
call dword [sym.imp.gdi32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push ecx
push edx
mov esi, eax
lea eax, [esp + 0x70]
push eax
push ebp
push edi
push 0
push 0
lea ecx, [esp + 0x58]
call fcn.00451ff0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], vtable.CBitmap.0
push 0
push 1
push 1
push ebp
push edi
lea ecx, [esp + 0x70]
mov byte [esp + 0x528], 5
call fcn.004760a0
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x50]
call fcn.00452060
mov edx, dword [esp + 0x51c]
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], eax
call fcn.00576b92
mov eax, dword [esp + 0x51c]
push eax
lea ecx, [esp + 0x50]
call fcn.00576b92
push 0xcc0020
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
push ebp
push edi
push 0
push 0
lea ecx, [esp + 0x6c]
call fcn.00451ff0
push 0x2000000
lea ecx, [esp + 0x3c]
call fcn.00576b92
push 0x2ffffff
lea ecx, [esp + 0x3c]
call fcn.00576c79
push 0x8800c6
push 0
push 0
lea edx, [esp + 0x58]
push edx
push ebp
push edi
push 0
push 0
lea ecx, [esp + 0x58]
call fcn.00451ff0
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
push 0x2ffffff
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
push 0x2000000
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x52c]
mov edx, dword [esp + 0x528]
push 0x8800c6
push 0
push 0
lea eax, [esp + 0x58]
push eax
push ebp
push edi
push ecx
push edx
mov ecx, ebx
call fcn.00451ff0
mov ecx, dword [esp + 0x52c]
mov edx, dword [esp + 0x528]
push 0xee0086
push 0
push 0
lea eax, [esp + 0x44]
push eax
push ebp
push edi
push ecx
push edx
mov ecx, ebx
call fcn.00451ff0
test esi, esi
je 0x4e8b9f
mov eax, dword [esp + 0x68]
push esi
push eax
call dword [sym.imp.gdi32.dll_SelectObject]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4e8bb1
push eax
lea ecx, [esp + 0x50]
call fcn.00452060
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4e8bc3
push eax
lea ecx, [esp + 0x3c]
call fcn.00452060
mov byte [esp + 0x514], 4
mov esi, vtable.CBitmap.0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], esi
call fcn.00424fa0
mov byte [esp + 0x514], 3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
call fcn.00424fa0
lea ecx, [esp + 0x64]
mov byte [esp + 0x514], 2
call fcn.0057762c
lea ecx, [esp + 0x4c]
mov byte [esp + 0x514], 1
call fcn.0057762c
lea ecx, [esp + 0x38]
mov dword [esp + 0x514], 0xffffffff
call fcn.0057762c
mov eax, 1
jmp 0x4e8996