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

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x2c], edi
jne 0x415cb8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0x9c]
push esi
push esi
lea eax, [esp + 0x3c]
push eax
push esi
lea ecx, [esp + 0x70]
push ecx
push edi
mov dword [esp + 0x78], 0x28
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
mov word [esp + 0x84], 1
mov word [esp + 0x86], 0x20
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
test esi, esi
je 0x415fea
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x48]
push edx
push 0x18
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x54]
mov ecx, eax
and ecx, 0x80000003
jns 0x415d62
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x415d7c
add eax, 1
mov edx, eax
and edx, 0x80000003
jns 0x415d76
dec edx
or edx, 0xfffffffc
inc edx
jne 0x415d64
mov dword [esp + 0x54], eax
push ebp
push ebx
push 0
push 0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x90]
push 0xcc0020
push eax
push ecx
push edx
mov edx, dword [esp + 0x54]
sub edx, eax
mov eax, dword [esp + 0x50]
push edx
sub eax, ecx
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x660
push 2
mov dword [esp + 0x20], 0x64
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
xor eax, eax
push eax
push eax
push 0x7fffffff
push 0x7fffffff
lea ecx, [esi + 0x10]
push ecx
mov dword [esi], 0x20
mov dword [esi + 4], 1
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x50]
add edx, 0xffffffff
imul edx, dword [esp + 0x54]
add edx, dword [esp + 0x5c]
cmp dword [esp + 0x9c], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], 0
jle 0x415f98
xor edi, edi
test ebx, ebx
jle 0x415f74
mov eax, dword [esp + 0x18]
add eax, 2
shl eax, 4
mov dword [esp + 0x20], eax
lea ebx, [ebx]
cmp edi, ebx
mov ecx, edi
mov dword [esp + 0x28], ecx
lea eax, [edx + edi*4]
jge 0x415f65
mov edx, dword [esp + 0x94]
cmp dword [eax], edx
je 0x415e76
add edi, 1
add eax, 4
cmp edi, ebx
jl 0x415e61
cmp edi, ecx
jle 0x415f65
mov eax, dword [esp + 0x18]
cmp dword [esi + 8], eax
jb 0x415eb5
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x20]
add dword [esp + 0x18], 0x64
add eax, 0x640
push 2
push eax
push ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
add ebx, 1
push ebx
push edi
add eax, 2
push ecx
shl eax, 4
push edx
add eax, esi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 0x10]
jge 0x415ee6
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x14]
jge 0x415ef2
mov dword [esi + 0x14], eax
cmp edi, dword [esi + 0x18]
jle 0x415efa
mov dword [esi + 0x18], edi
cmp ebx, dword [esi + 0x1c]
jle 0x415f02
mov dword [esi + 0x1c], ebx
add dword [esi + 8], 1
cmp dword [esi + 8], 0x7d0
jne 0x415f5e
mov ecx, dword [esp + 0x20]
push esi
push ecx
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov ebx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x415f3b
push 2
push ebx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x415f3f
mov dword [esp + 0x1c], ebx
push 0
push 0
push 0x7fffffff
push 0x7fffffff
lea eax, [esi + 0x10]
push eax
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_SetRect]
mov ebx, dword [esp + 0x98]
mov edx, dword [esp + 0x24]
add edi, 1
cmp edi, ebx
jl 0x415e50
mov eax, dword [esp + 0x14]
sub edx, dword [esp + 0x54]
add eax, 1
cmp eax, dword [esp + 0x9c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], eax
jl 0x415e32
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call ebx
mov eax, dword [esp + 0x18]
add eax, 2
push esi
shl eax, 4
push eax
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x415fdb
push 2
push esi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call ebx
jmp 0x415fdf
mov dword [esp + 0x1c], esi
test ebp, ebp
je 0x415fea
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret