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

Disassembly:
sub esp, 0x94
push ebp
push esi
mov esi, dword [esp + 0xa0]
push edi
xor ebp, ebp
xor edi, edi
cmp esi, ebp
mov dword [esp + 0x1c], edi
je 0x49ebbd
push ebx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x44], ebx
je 0x49ebb0
mov edi, dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [esp + 0x48]
push eax
push 0x18
push esi
call edi
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
push ebp
push ebp
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0x70], ecx
push ebp
lea ecx, [esp + 0x70]
push ecx
push ebx
mov dword [esp + 0x78], 0x28
mov dword [esp + 0x80], edx
mov word [esp + 0x84], 1
mov word [esp + 0x86], 0x20
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], ebp
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, ebp
mov dword [esp + 0x34], eax
je 0x49eb93
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x40], ebp
je 0x49eb83
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x88]
push edx
push 0x18
push eax
call edi
mov eax, dword [esp + 0x94]
mov ecx, eax
and ecx, 0x80000003
jns 0x49e85a
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x49e87b
lea esp, [esp]
add eax, 1
mov edx, eax
and edx, 0x80000003
jns 0x49e872
dec edx
or edx, 0xfffffffc
inc edx
jne 0x49e860
mov dword [esp + 0x94], eax
push esi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x4c]
push 0xcc0020
xor edi, edi
push edi
push edi
push ebp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x60]
push eax
push ecx
push edi
push edi
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x660
push 2
mov dword [esp + 0x24], 0x64
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov esi, eax
push edi
push SysReAllocString
push SysReAllocString
lea edx, [esi + 0x10]
push edx
mov dword [esi], 0x20
mov dword [esi + 4], 1
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
cmp al, cl
mov byte [esp + 0x12], al
jb 0x49e90f
mov byte [esp + 0x12], cl
mov byte [esp + 0x14], al
ja 0x49e913
mov byte [esp + 0x14], cl
mov dx, cx
mov bx, ax
shr bx, 8
shr dx, 8
cmp bl, dl
mov byte [esp + 0x15], bl
jb 0x49e933
mov byte [esp + 0x15], dl
mov byte [esp + 0x17], bl
ja 0x49e937
mov byte [esp + 0x17], dl
shr eax, 0x10
shr ecx, 0x10
cmp al, cl
mov byte [esp + 0x13], al
jb 0x49e94f
mov byte [esp + 0x13], cl
mov byte [esp + 0x16], al
ja 0x49e953
mov byte [esp + 0x16], cl
mov ecx, dword [esp + 0x90]
add ecx, 0xffffffff
imul ecx, dword [esp + 0x94]
add ecx, dword [esp + 0x9c]
cmp dword [esp + 0x50], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edi
jle 0x49eb2b
mov edi, dword [esp + 0x4c]
xor ebp, ebp
test edi, edi
jle 0x49eb07
mov eax, dword [esp + 0x1c]
add eax, 2
shl eax, 4
mov dword [esp + 0x2c], eax
lea ebx, [ebx]
cmp ebp, edi
mov edx, ebp
mov dword [esp + 0x30], edx
lea eax, [ecx + ebp*4]
jge 0x49eaf8
mov cl, byte [eax]
cmp cl, byte [esp + 0x13]
jb 0x49e9dd
cmp cl, byte [esp + 0x16]
ja 0x49e9dd
mov cl, byte [eax + 1]
cmp cl, byte [esp + 0x15]
jb 0x49e9dd
cmp cl, byte [esp + 0x17]
ja 0x49e9dd
mov cl, byte [eax + 2]
cmp cl, byte [esp + 0x12]
jb 0x49e9dd
cmp cl, byte [esp + 0x14]
jbe 0x49e9e7
add ebp, 1
add eax, 4
cmp ebp, edi
jl 0x49e9b1
cmp ebp, edx
jle 0x49eaf8
mov eax, dword [esi + 8]
cmp eax, dword [esp + 0x1c]
jb 0x49ea2c
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x1c], 0x64
add eax, 0x640
push 2
push eax
push esi
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x30]
add ebx, 1
push ebx
push ebp
push ecx
shl eax, 4
lea edi, [esi + 0x20]
push edx
add eax, edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x30]
cmp eax, dword [esi + 0x10]
jge 0x49ea5d
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x14]
jge 0x49ea69
mov dword [esi + 0x14], eax
cmp ebp, dword [esi + 0x18]
jle 0x49ea71
mov dword [esi + 0x18], ebp
cmp ebx, dword [esi + 0x1c]
jle 0x49ea79
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0xb8]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0xb4]
push ecx
shl eax, 4
push edx
add eax, edi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
add dword [esi + 8], 1
cmp dword [esi + 8], 0x7d0
jne 0x49eaf4
mov ecx, dword [esp + 0x2c]
push esi
push ecx
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov edi, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x49ead1
push 2
push edi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x49ead5
mov dword [esp + 0x20], edi
push 0
push 0
push SysReAllocString
push SysReAllocString
lea eax, [esi + 0x10]
push eax
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
add ebp, 1
cmp ebp, edi
jl 0x49e9a0
mov eax, dword [esp + 0x18]
sub ecx, dword [esp + 0x94]
add eax, 1
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
jl 0x49e982
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
add edx, 2
push esi
shl edx, 4
push edx
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x49eb5d
push 2
push esi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x49eb61
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x38]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x20]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x94
ret
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x94
ret
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x94
ret