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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff64
mov ebx, ecx
mov ebp, edx
mov edi, eax
xor eax, eax
mov dword [esp + 8], eax
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
jbe 0x4f37b7
lea eax, [esp + 0x44]
push eax
push 0x18
push edi
call sub.gdi32.dll_GetObjectA
mov dword [esp + 0x74], 0x28
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x7c], eax
mov word [esp + 0x80], 1
mov word [esp + 0x82], 0x20
xor eax, eax
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x8c], eax
xor eax, eax
mov dword [esp + 0x90], eax
xor eax, eax
mov dword [esp + 0x94], eax
xor eax, eax
mov dword [esp + 0x98], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x18], eax
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 0
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.gdi32.dll_CreateDIBSection
mov esi, eax
test esi, esi
jbe 0x4f37ad
push esi
mov eax, dword [esp + 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jbe 0x4f3798
lea eax, [esp + 0x5c]
push eax
push 0x18
push esi
call sub.gdi32.dll_GetObjectA
jmp 0x4f3416
inc dword [esp + 0x68]
mov eax, dword [esp + 0x68]
and eax, 0x80000003
jns 0x4f3426
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x4f3412
push edi
mov eax, dword [esp + 0x14]
push eax
call sub.gdi32.dll_SelectObject
mov dword [esp + 0x14], eax
push 0xcc0020
push 0
push 0
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push eax
push 0
push 0
mov eax, dword [esp + 0x2c]
push eax
call sub.gdi32.dll_BitBlt
mov dword [esp], 0x64
mov eax, dword [esp]
shl eax, 4
add eax, 0x20
push eax
push 2
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [eax], 0x20
mov dword [eax + 4], 1
xor edx, edx
mov dword [eax + 8], edx
xor edx, edx
mov dword [eax + 0xc], edx
push 0
push 0
push 0x7fffffff
push 0x7fffffff
add eax, 0x10
push eax
call sub.user32.dll_SetRect
mov eax, ebp
call fcn.00408d84
mov byte [esp + 0x28], al
mov eax, ebp
call fcn.00408d88
mov byte [esp + 0x29], al
mov eax, ebp
call fcn.00408d8c
mov byte [esp + 0x2a], al
mov eax, ebx
call fcn.00408d84
xor edx, edx
mov dl, al
xor eax, eax
mov al, byte [esp + 0x28]
add edx, eax
mov eax, 0xff
call fcn.00437630
mov byte [esp + 0x2b], al
mov eax, ebx
call fcn.00408d88
xor edx, edx
mov dl, al
xor eax, eax
mov al, byte [esp + 0x29]
add edx, eax
mov eax, 0xff
call fcn.00437630
mov byte [esp + 0x2c], al
mov eax, ebx
call fcn.00408d8c
xor edx, edx
mov dl, al
xor eax, eax
mov al, byte [esp + 0x2a]
add edx, eax
mov eax, 0xff
call fcn.00437630
mov byte [esp + 0x2d], al
mov eax, dword [esp + 0x64]
dec eax
imul dword [esp + 0x68]
add eax, dword [esp + 0x70]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
dec eax
test eax, eax
jl 0x4f3729
inc eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], 0
xor esi, esi
jmp 0x4f3709
mov ebp, esi
mov eax, esi
shl eax, 2
add eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
jmp 0x4f35d3
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
call fcn.00408d84
mov ebx, eax
cmp bl, byte [esp + 0x28]
jb 0x4f35cd
cmp bl, byte [esp + 0x2b]
ja 0x4f35cd
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
call fcn.00408d88
mov ebx, eax
cmp bl, byte [esp + 0x29]
jb 0x4f35cd
cmp bl, byte [esp + 0x2c]
ja 0x4f35cd
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
call fcn.00408d8c
mov ebx, eax
cmp bl, byte [esp + 0x2a]
jb 0x4f35cd
cmp bl, byte [esp + 0x2d]
jbe 0x4f35d9
add dword [esp + 0x34], 4
inc esi
cmp esi, dword [esp + 0x48]
jl 0x4f3582
cmp ebp, esi
jge 0x4f368b
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
cmp eax, dword [esp]
jb 0x4f3624
mov eax, dword [esp + 0x20]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
add dword [esp], 0x64
push 2
mov eax, dword [esp + 4]
shl eax, 4
add eax, 0x20
push eax
mov eax, dword [esp + 0x28]
push eax
call sub.KERNEL32.DLL_GlobalReAlloc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
add eax, 0x20
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
inc eax
push eax
push esi
mov eax, dword [esp + 0x40]
push eax
push ebp
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 8]
add eax, eax
mov edx, dword [esp + 0x4c]
lea eax, [edx + eax*8]
push eax
call sub.user32.dll_SetRect
mov edi, dword [esp + 0x24]
cmp ebp, dword [edi + 0x10]
jge 0x4f365e
mov dword [edi + 0x10], ebp
mov eax, dword [edi + 0x14]
cmp eax, dword [esp + 0x38]
jle 0x4f366e
mov eax, dword [esp + 0x38]
mov dword [edi + 0x14], eax
cmp esi, dword [edi + 0x18]
jle 0x4f3676
mov dword [edi + 0x18], esi
mov eax, dword [esp + 0x38]
inc eax
cmp eax, dword [edi + 0x1c]
jle 0x4f3688
mov eax, dword [esp + 0x38]
inc eax
mov dword [edi + 0x1c], eax
inc dword [edi + 8]
mov eax, dword [esp + 0x24]
cmp dword [eax + 8], 0x7d0
jne 0x4f3708
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 4]
shl eax, 4
add eax, 0x20
push eax
push 0
call sub.gdi32.dll_ExtCreateRegion
mov dword [esp + 4], eax
cmp dword [esp + 8], 0
jbe 0x4f36dc
push 2
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.gdi32.dll_CombineRgn
mov eax, dword [esp + 4]
push eax
call sub.gdi32.dll_DeleteObject
jmp 0x4f36e4
mov eax, dword [esp + 4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [eax + 8], edx
push 0
push 0
push 0x7fffffff
push 0x7fffffff
mov eax, dword [esp + 0x34]
add eax, 0x10
push eax
call sub.user32.dll_SetRect
inc esi
cmp esi, dword [esp + 0x48]
jl 0x4f3571
mov eax, dword [esp + 0x68]
sub dword [esp + 0x30], eax
inc dword [esp + 0x38]
dec dword [esp + 0x40]
jne 0x4f356a
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 4]
shl eax, 4
add eax, 0x20
push eax
push 0
call sub.gdi32.dll_ExtCreateRegion
mov dword [esp + 4], eax
cmp dword [esp + 8], 0
jbe 0x4f376d
push 2
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.gdi32.dll_CombineRgn
mov eax, dword [esp + 4]
push eax
call sub.gdi32.dll_DeleteObject
jmp 0x4f3775
mov eax, dword [esp + 4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
push eax
call sub.KERNEL32.DLL_GlobalFree
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [esp + 0x10]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.gdi32.dll_SelectObject
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [esp + 8]
add esp, 0x9c
pop ebp
pop edi
pop esi
pop ebx
ret