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

Disassembly:
push 0xffffffffffffffff
push 0x612202
mov eax, dword fs:[0]
push eax
sub esp, 0x4fc
push ebp
push esi
push edi
mov eax, dword [0x6963f4]
xor eax, esp
push eax
lea eax, [esp + 0x50c]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x4e5554
cmp dword [esp + 0x51c], 0xffffffff
jne 0x4e51ed
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.004e4270
jmp 0x4e5556
mov eax, dword [esp + 0x524]
test eax, eax
je 0x4e51ff
mov edi, dword [eax]
mov ebp, dword [eax + 4]
jmp 0x4e5205
mov ebp, dword [esi + 0x28]
mov edi, dword [esi + 0x24]
mov eax, dword [esp + 0x520]
test eax, eax
je 0x4e521f
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
jmp 0x4e522b
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 0x4e523e
sub eax, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esi + 0x28]
mov edx, eax
sub edx, ecx
cmp ebp, edx
jle 0x4e524d
sub eax, ecx
mov ebp, eax
cmp word [esi + 0x2e], 8
jne 0x4e547d
call fcn.004e4850
movzx ecx, word [eax + 2]
test ecx, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], ecx
jle 0x4e51c2
add eax, 5
jmp 0x4e5280
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 0x4e52b2
mov ecx, dword [esp + 0x14]
add ecx, 1
add eax, 4
cmp ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
jl 0x4e5280
jmp 0x4e51c2
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
mov dword [esp + 0x80], eax
je 0x4e51c2
lea edx, [esp + 0x84]
push edx
call fcn.004e31f0
mov dword [esp + 0x514], 0
call fcn.004e4850
push eax
push 8
push 1
push ebp
push edi
lea eax, [esp + 0x98]
push eax
call fcn.004e3c50
push 1
xor eax, eax
lea ecx, [esp + 0x88]
call fcn.004e45e0
test ebx, ebx
mov dword [esp + 0x48], eax
jne 0x4e5313
xor ecx, ecx
jmp 0x4e5316
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 0x4e5428
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
jmp 0x4e53c0
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 0x4e5415
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 0x4e540b
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 0x4e53f0
mov ecx, dword [esp + 0x28]
add dword [esp + 0x14], 1
add dword [esp + 0x34], ecx
cmp dword [esp + 0x14], ebp
jl 0x4e53c0
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.004e46b0
mov ecx, edi
mov dword [esp + 0x514], 0xffffffff
call fcn.004e32f0
mov eax, 1
jmp 0x4e5556
lea ecx, [esp + 0x38]
call fcn.0056f38b
lea ecx, [esp + 0x4c]
mov dword [esp + 0x514], 1
call fcn.0056f38b
lea ecx, [esp + 0x64]
mov byte [esp + 0x514], 2
call fcn.0056f38b
push ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x518], 3
call fcn.00450310
test eax, eax
je 0x4e551e
push ebx
lea ecx, [esp + 0x3c]
call fcn.00450310
test eax, eax
je 0x4e551e
push ebx
lea ecx, [esp + 0x68]
call fcn.00450310
test eax, eax
je 0x4e551e
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.004502e0
test eax, eax
jne 0x4e5571
mov byte [esp + 0x514], 3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.CBitmap.0
call fcn.00423d70
lea ecx, [esp + 0x64]
mov byte [esp + 0x514], 2
call fcn.0056fa9d
lea ecx, [esp + 0x4c]
mov byte [esp + 0x514], 1
call fcn.0056fa9d
lea ecx, [esp + 0x38]
mov dword [esp + 0x514], 0xffffffff
call fcn.0056fa9d
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.004502b0
mov dword [esp + 0x28], eax
lea eax, [esi + 0x454]
test eax, eax
je 0x4e55fe
cmp dword [eax + 4], 0
je 0x4e55fe
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.0056fe08
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.0056fe08
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.0056fe08
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.0056fe08
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.00450240
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.004718e0
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x50]
call fcn.004502b0
mov edx, dword [esp + 0x51c]
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], eax
call fcn.0056f003
mov eax, dword [esp + 0x51c]
push eax
lea ecx, [esp + 0x50]
call fcn.0056f003
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.00450240
push 0x2000000
lea ecx, [esp + 0x3c]
call fcn.0056f003
push 0x2ffffff
lea ecx, [esp + 0x3c]
call fcn.0056f0ea
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.00450240
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.00450240
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.00450240
test esi, esi
je 0x4e575f
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 0x4e5771
push eax
lea ecx, [esp + 0x50]
call fcn.004502b0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4e5783
push eax
lea ecx, [esp + 0x3c]
call fcn.004502b0
mov byte [esp + 0x514], 4
mov esi, vtable.CBitmap.0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], esi
call fcn.00423d70
mov byte [esp + 0x514], 3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
call fcn.00423d70
lea ecx, [esp + 0x64]
mov byte [esp + 0x514], 2
call fcn.0056fa9d
lea ecx, [esp + 0x4c]
mov byte [esp + 0x514], 1
call fcn.0056fa9d
lea ecx, [esp + 0x38]
mov dword [esp + 0x514], 0xffffffff
call fcn.0056fa9d
mov eax, 1
jmp 0x4e5556