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

Disassembly:
push 0xffffffffffffffff
push 0x612198
mov eax, dword fs:[0]
push eax
sub esp, 0xde4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6963f4]
xor eax, esp
push eax
lea eax, [esp + 0xdf8]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x1c], ebp
je 0x4e62d5
cmp dword [esp + 0xe0c], 0xffffffff
jne 0x4e5b06
mov eax, dword [esp + 0xe24]
mov ecx, dword [esp + 0xe20]
mov edx, dword [esp + 0xe1c]
push eax
mov eax, dword [esp + 0xe1c]
push ecx
mov ecx, dword [esp + 0xe1c]
push edx
push eax
mov eax, dword [esp + 0xe20]
push ecx
mov ecx, dword [esp + 0xe1c]
mov edx, esi
call fcn.004e4430
jmp 0x4e62d7
mov edi, dword [esp + 0xe10]
cmp edi, ebp
mov ebx, dword [esp + 0xe14]
jne 0x4e61bb
cmp ebx, ebp
jne 0x4e61bb
cmp word [esi + 0x2e], 8
jne 0x4e5d79
call fcn.004e4850
movzx edi, word [eax + 2]
xor ecx, ecx
cmp edi, ebp
jle 0x4e5b6f
add eax, 5
movzx ebx, byte [eax - 1]
xor edx, edx
mov dh, byte [eax + 1]
mov dl, byte [eax]
shl edx, 8
or edx, ebx
cmp edx, dword [esp + 0xe0c]
je 0x4e5b66
add ecx, 1
add eax, 4
cmp ecx, edi
jl 0x4e5b41
jmp 0x4e5b6f
cmp ecx, 0xffffffff
mov dword [esp + 0x30], ecx
jne 0x4e5ba5
mov edx, dword [esp + 0xe24]
mov eax, dword [esp + 0xe20]
mov ecx, dword [esp + 0xe1c]
push edx
mov edx, dword [esp + 0xe1c]
push eax
push ecx
mov ecx, dword [esp + 0xe14]
push edx
push ebp
xor eax, eax
mov edx, esi
call fcn.004e4430
jmp 0x4e62d7
lea eax, [esp + 0x974]
push eax
call fcn.004e31f0
lea ecx, [esp + 0x4f4]
push ecx
mov dword [esp + 0xe04], 1
call fcn.004e31f0
mov byte [esp + 0xe00], 2
call fcn.004e4850
mov ebx, dword [esp + 0xe24]
mov ebp, dword [esp + 0xe20]
push eax
push 8
push 1
push ebx
push ebp
lea edx, [esp + 0x988]
push edx
call fcn.004e3c50
call fcn.004e4850
push eax
push 8
push 1
push ebx
push ebp
lea eax, [esp + 0x508]
push eax
call fcn.004e3c50
push 1
xor eax, eax
lea ecx, [esp + 0x4f8]
call fcn.004e45e0
push ebx
xor edx, edx
push ebp
push edx
mov ecx, eax
xor eax, eax
push eax
push edx
mov edx, esi
call fcn.004e4430
lea edi, [esp + 0x4f4]
call fcn.004e46b0
push 1
xor eax, eax
lea ecx, [esp + 0x978]
call fcn.004e45e0
mov edi, dword [esp + 0xe08]
test edi, edi
mov esi, eax
mov dword [esp + 0x28], esi
jne 0x4e5c65
xor eax, eax
jmp 0x4e5c68
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0xe1c]
mov edx, dword [esp + 0xe18]
push 0xcc0020
push ecx
push edx
push eax
mov eax, dword [esi + 4]
push ebx
push ebp
push 0
push 0
push eax
call dword [sym.imp.gdi32.dll_BitBlt]
lea eax, [ebp*8 + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, eax
add eax, eax
test ebx, ebx
jle 0x4e5d14
mov ecx, dword [esp + 0x93c]
mov esi, dword [esp + 0xdbc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x5c], ebx
test ebp, ebp
jle 0x4e5cf2
sub esi, ecx
mov dword [esp + 0x24], ebp
mov dl, byte [ecx]
movzx edi, dl
cmp edi, dword [esp + 0x30]
je 0x4e5ce4
mov byte [esi + ecx], dl
add ecx, 1
sub dword [esp + 0x24], 1
jne 0x4e5cd6
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
add esi, eax
add ecx, eax
sub dword [esp + 0x5c], 1
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ecx
jne 0x4e5ccc
mov edi, dword [esp + 0xe08]
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0xe1c]
mov edx, dword [esp + 0xe18]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [edi + 4]
push ebx
push ebp
push ecx
push edx
push eax
call dword [sym.imp.gdi32.dll_BitBlt]
lea edi, [esp + 0x974]
call fcn.004e46b0
lea ecx, [esp + 0x4f4]
mov byte [esp + 0xe00], 1
call fcn.004e32f0
mov ecx, edi
mov dword [esp + 0xe00], 0xffffffff
call fcn.004e32f0
mov eax, 1
jmp 0x4e62d7
lea ecx, [esp + 0x3c]
call fcn.0056f38b
lea ecx, [esp + 0x4c]
mov dword [esp + 0xe00], 3
call fcn.0056f38b
lea ecx, [esp + 0x64]
mov byte [esp + 0xe00], 4
call fcn.0056f38b
mov edi, dword [esp + 0xe08]
push edi
lea ecx, [esp + 0x50]
mov byte [esp + 0xe04], 5
call fcn.00450310
test eax, eax
je 0x4e5f45
push edi
lea ecx, [esp + 0x40]
call fcn.00450310
test eax, eax
lea ecx, [esp + 0x64]
je 0x4e5f49
push edi
call fcn.00450310
test eax, eax
je 0x4e5f45
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], vtable.CBitmap.0
mov byte [esp + 0xe00], 6
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push eax
push ecx
push edi
lea ecx, [esp + 0x28]
call fcn.004502e0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
call fcn.004502b0
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], ebp
lea ebp, [esi + 0x454]
test ebp, ebp
mov dword [esp + 0x30], eax
je 0x4e5ea3
cmp dword [ebp + 4], 0
je 0x4e5ea3
push 0
push ebp
lea ecx, [esp + 0x44]
call fcn.0056fe08
mov edx, dword [esp + 0x40]
mov ebx, dword [sym.imp.gdi32.dll_RealizePalette]
push edx
mov dword [esp + 0x60], eax
call ebx
push 0
push ebp
lea ecx, [esp + 0x6c]
call fcn.0056fe08
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
push eax
call ebx
push 0
push ebp
lea ecx, [esp + 0x54]
call fcn.0056fe08
mov ecx, dword [esp + 0x50]
push ecx
mov dword [esp + 0x3c], eax
call ebx
push 0
push ebp
mov ecx, edi
call fcn.0056fe08
mov edx, dword [edi + 4]
push edx
mov dword [esp + 0x28], eax
call ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x68]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SelectObject]
mov ecx, dword [esi + 0x24]
push 0xcc0020
push 0
push 0
lea edx, [esp + 0x70]
push edx
mov ebx, eax
mov eax, dword [esi + 0x28]
push eax
push ecx
push 0
push 0
lea ecx, [esp + 0x5c]
call fcn.00450240
test ebx, ebx
je 0x4e5ee7
mov eax, dword [esp + 0x68]
push ebx
push eax
call dword [sym.imp.gdi32.dll_SelectObject]
mov ebx, vtable.CBitmap.0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
push 0
push 1
mov byte [esp + 0xe08], 7
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push 1
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004718e0
test eax, eax
lea ecx, [esp + 0x14]
jne 0x4e5f80
mov byte [esp + 0xe00], 6
mov dword [esp + 0x14], ebx
call fcn.00423d70
mov byte [esp + 0xe00], 5
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x1c]
call fcn.00423d70
lea ecx, [esp + 0x64]
mov byte [esp + 0xe00], 4
call fcn.0056fa9d
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe00], 3
call fcn.0056fa9d
lea ecx, [esp + 0x3c]
mov dword [esp + 0xe00], 0xffffffff
call fcn.0056fa9d
jmp 0x4e62d5
push ecx
lea ecx, [esp + 0x50]
call fcn.004502b0
mov ebx, dword [esp + 0xe0c]
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], eax
call fcn.0056f003
push ebx
lea ecx, [esp + 0x50]
call fcn.0056f003
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push 0xcc0020
push 0
push 0
lea edx, [esp + 0x48]
push edx
push eax
push ecx
push 0
push 0
lea ecx, [esp + 0x6c]
call fcn.00450240
test eax, eax
jne 0x4e5ffb
mov byte [esp + 0xe00], 6
mov esi, vtable.CBitmap.0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.00423d70
mov byte [esp + 0xe00], 5
mov dword [esp + 0x1c], esi
jmp 0x4e5f3c
push 0x2000000
lea ecx, [esp + 0x40]
call fcn.0056f003
push 0x2ffffff
lea ecx, [esp + 0x40]
call fcn.0056f0ea
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push 0x8800c6
push 0
push 0
lea edx, [esp + 0x58]
push edx
push eax
push ecx
push 0
push 0
lea ecx, [esp + 0x5c]
call fcn.00450240
test eax, eax
je 0x4e5fd0
push 3
mov ecx, edi
call fcn.0056f0bc
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push 0x2ffffff
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push 0x2000000
mov ecx, edi
call edx
mov eax, dword [esi + 0x24]
mov ebx, dword [esp + 0xe24]
mov ecx, dword [esp + 0xe1c]
mov edx, dword [esi + 0x28]
push 0x8800c6
push eax
mov eax, dword [esp + 0xe28]
push 0
push 0
push ebx
push eax
mov eax, dword [esp + 0xe30]
push ecx
push eax
push edi
lea eax, [esp + 0x70]
call fcn.004501f0
test eax, eax
je 0x4e5fd0
mov edx, dword [esi + 0x28]
mov esi, dword [esi + 0x24]
mov ecx, dword [esp + 0xe20]
mov eax, dword [esp + 0xe1c]
push 0xee0086
push esi
push 0
push 0
push ebx
push ecx
mov ecx, dword [esp + 0xe30]
push eax
push ecx
push edi
lea eax, [esp + 0x60]
call fcn.004501f0
test eax, eax
je 0x4e5fd0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4e60f2
push eax
lea ecx, [esp + 0x50]
call fcn.004502b0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4e6104
push eax
lea ecx, [esp + 0x40]
call fcn.004502b0
test ebp, ebp
je 0x4e614c
cmp dword [ebp + 4], 0
je 0x4e614c
mov edx, dword [esp + 0x5c]
push 0
push edx
lea ecx, [esp + 0x44]
call fcn.0056fe08
mov eax, dword [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x6c]
call fcn.0056fe08
mov ecx, dword [esp + 0x38]
push 0
push ecx
lea ecx, [esp + 0x54]
call fcn.0056fe08
mov edx, dword [esp + 0x24]
push 0
push edx
mov ecx, edi
call fcn.0056fe08
mov byte [esp + 0xe00], 6
mov esi, vtable.CBitmap.0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.00423d70
mov byte [esp + 0xe00], 5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
call fcn.00423d70
lea ecx, [esp + 0x64]
mov byte [esp + 0xe00], 4
call fcn.0056fa9d
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe00], 3
call fcn.0056fa9d
lea ecx, [esp + 0x3c]
mov dword [esp + 0xe00], 0xffffffff
call fcn.0056fa9d
mov eax, 1
jmp 0x4e62d7
lea eax, [esp + 0x74]
push eax
call fcn.004e31f0
cmp edi, ebp
mov dword [esp + 0xe00], ebp
je 0x4e61d7
mov edx, dword [edi]
mov edi, dword [edi + 4]
jmp 0x4e61db
xor edx, edx
xor edi, edi
cmp ebx, ebp
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edi
je 0x4e61f2
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [esp + 0x2c], edx
jmp 0x4e6200
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
sub eax, edi
sub ecx, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], ecx
mov ebx, dword [eax]
cmp ebx, ebp
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
jle 0x4e62c1
cmp eax, ebp
jle 0x4e62c1
movzx edi, word [esi + 0x2e]
movzx ebp, word [esi + 0x2c]
call fcn.004e4850
push eax
mov eax, dword [esp + 0x30]
push edi
push ebp
push eax
push ebx
lea ecx, [esp + 0x88]
push ecx
call fcn.004e3c50
push 1
xor eax, eax
lea ecx, [esp + 0x78]
call fcn.004e45e0
xor edx, edx
push edx
xor ecx, ecx
push ecx
push eax
xor eax, eax
lea edx, [esp + 0x68]
mov ecx, esi
call fcn.004e4270
lea edi, [esp + 0x74]
call fcn.004e46b0
mov edx, dword [esp + 0xe24]
mov eax, dword [esp + 0xe20]
mov ecx, dword [esp + 0xe1c]
push edx
mov edx, dword [esp + 0xe1c]
push eax
mov eax, dword [esp + 0xe14]
push ecx
mov ecx, dword [esp + 0xe14]
push edx
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.004e5a80
mov ecx, edi
mov esi, eax
mov dword [esp + 0xe00], 0xffffffff
call fcn.004e32f0
mov eax, esi
jmp 0x4e62d7
lea ecx, [esp + 0x74]
mov dword [esp + 0xe00], 0xffffffff
call fcn.004e32f0
xor eax, eax
mov ecx, dword [esp + 0xdf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdf0
ret 0x20