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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff78
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
mov dword [esp], eax
test edi, edi
je 0x4dab26
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x4dab1c
mov dword [esp + 0x44], 0x28
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp + 0x48], eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], 1
mov word [esp + 0x52], 0x20
xor eax, eax
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x68], eax
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.gdi32.dll_CreateDIBSection
mov ebp, eax
test ebp, ebp
je 0x4dab1c
push ebp
mov eax, dword [esp + 8]
push eax
call sub.gdi32.dll_SelectObject
mov dword [esp + 0x10], eax
lea eax, [esp + 0x70]
push eax
push 0x18
push ebp
call sub.gdi32.dll_GetObjectA
jmp 0x4da6e9
inc dword [esp + 0x7c]
mov eax, dword [esp + 0x7c]
and eax, 0x80000003
jns 0x4da6f9
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jg 0x4da6e5
mov eax, dword [esp + 4]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [esp + 8], eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x64]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_SelectObject
mov dword [esp + 0xc], eax
push 0xcc0020
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
mov eax, dword [esp + 0x24]
push eax
call sub.gdi32.dll_BitBlt
mov dword [esp + 0x18], 0x64
mov eax, dword [esp + 0x18]
shl eax, 4
add eax, 0x20
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [eax], 0x20
mov eax, dword [esp + 0x20]
mov dword [eax + 4], 1
mov eax, dword [esp + 0x20]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [esp + 0x20]
xor edx, edx
mov dword [eax + 0xc], edx
push 0
push 0
push 0x7fffffff
push 0x7fffffff
mov eax, dword [esp + 0x30]
add eax, 0x10
push eax
call sub.user32.dll_SetRect
mov eax, ebx
call fcn.0042a254
call fcn.00408788
mov byte [esp + 0x24], al
mov eax, ebx
call fcn.0042a254
call fcn.0040878c
mov byte [esp + 0x25], al
mov eax, ebx
call fcn.0042a254
call fcn.00408790
mov byte [esp + 0x26], al
mov ebx, esi
mov edx, ebx
add dl, byte [esp + 0x24]
mov al, 0xff
call fcn.004da618
mov byte [esp + 0x27], al
mov edx, ebx
add dl, byte [esp + 0x25]
mov al, 0xff
call fcn.004da618
mov byte [esp + 0x28], al
mov edx, ebx
add dl, byte [esp + 0x26]
mov al, 0xff
call fcn.004da618
mov byte [esp + 0x29], al
mov eax, dword [esp + 0x84]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x78]
dec eax
imul dword [esp + 0x7c]
add dword [esp + 0x2c], eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
test eax, eax
jl 0x4daa7f
inc eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], 0
or esi, 0xffffffff
jmp 0x4daa57
inc esi
mov ebp, esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, esi
shl eax, 2
add dword [esp + 0x34], eax
jmp 0x4da8c4
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
call fcn.00408790
mov ebx, eax
cmp bl, byte [esp + 0x24]
jb 0x4da8be
cmp bl, byte [esp + 0x27]
ja 0x4da8be
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
call fcn.0040878c
mov ebx, eax
cmp bl, byte [esp + 0x25]
jb 0x4da8be
cmp bl, byte [esp + 0x28]
ja 0x4da8be
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
call fcn.00408788
mov ebx, eax
cmp bl, byte [esp + 0x26]
jb 0x4da8be
cmp bl, byte [esp + 0x29]
jbe 0x4da8cf
add dword [esp + 0x34], 4
inc esi
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp esi, eax
jl 0x4da873
cmp ebp, esi
jge 0x4daa57
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
cmp eax, dword [esp + 0x18]
jb 0x4da937
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_GlobalUnlock
add dword [esp + 0x18], 0x64
push 2
mov eax, dword [esp + 0x1c]
shl eax, 4
add eax, 0x20
push eax
mov eax, dword [esp + 0x24]
push eax
call sub.kernel32.dll_GlobalReAlloc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jne 0x4da937
mov ecx, 0x24a
mov edx, 0x4dab3c
mov eax, 0x4dab88
call fcn.00405404
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
shl eax, 4
mov edx, dword [esp + 0x20]
lea eax, [edx + eax + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
inc eax
push eax
push esi
mov eax, dword [esp + 0x38]
push eax
push ebp
mov eax, dword [esp + 0x48]
push eax
call sub.user32.dll_SetRect
mov eax, dword [esp + 0x20]
cmp ebp, dword [eax + 0x10]
jge 0x4da974
mov eax, dword [esp + 0x20]
mov dword [eax + 0x10], ebp
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x14]
cmp eax, dword [esp + 0x30]
jle 0x4da98c
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x20]
cmp esi, dword [eax + 0x18]
jle 0x4da99c
mov eax, dword [esp + 0x20]
mov dword [eax + 0x10], esi
mov eax, dword [esp + 0x30]
inc eax
mov edx, dword [esp + 0x20]
cmp eax, dword [edx + 0x1c]
jle 0x4da9b6
mov eax, dword [esp + 0x30]
inc eax
mov edx, dword [esp + 0x20]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x20]
inc dword [eax + 8]
mov eax, dword [esp + 0x20]
cmp dword [eax + 8], 0x7d0
jne 0x4daa57
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
shl eax, 4
add eax, 0x20
push eax
push 0
call sub.gdi32.dll_ExtCreateRegion
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0
jne 0x4daa04
mov ecx, 0x260
mov edx, 0x4dab3c
mov eax, 0x4dab88
call fcn.00405404
cmp dword [esp], 0
je 0x4daa2c
push 2
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_CombineRgn
mov eax, dword [esp + 0x3c]
push eax
call sub.gdi32.dll_DeleteObject
jmp 0x4daa33
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
xor edx, edx
mov dword [eax + 8], edx
push 0
push 0
push 0x7fffffff
push 0x7fffffff
mov eax, dword [esp + 0x30]
add eax, 0x10
push eax
call sub.user32.dll_SetRect
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
lea edx, [esi + 1]
cmp eax, edx
jg 0x4da85d
mov eax, dword [esp + 0x7c]
sub dword [esp + 0x2c], eax
inc dword [esp + 0x30]
dec dword [esp + 0x40]
jne 0x4da855
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
shl eax, 4
add eax, 0x20
push eax
push 0
call sub.gdi32.dll_ExtCreateRegion
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0
jne 0x4daab5
mov ecx, 0x275
mov edx, 0x4dab3c
mov eax, 0x4dab88
call fcn.00405404
cmp dword [esp], 0
je 0x4daadd
push 2
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_CombineRgn
mov eax, dword [esp + 0x3c]
push eax
call sub.gdi32.dll_DeleteObject
jmp 0x4daae4
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [esp + 8]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push eax
call sub.gdi32.dll_SelectObject
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [esp + 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [esp]
add esp, 0x88
pop ebp
pop edi
pop esi
pop ebx
ret