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

Disassembly:
sub esp, 0xa8
mov edx, dword [esp + 0xb0]
xor eax, eax
mov dword [esp + 0x30], eax
push ebx
mov dword [esp + 0x38], eax
push ebp
push esi
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x3c]
push edi
xor ebp, ebp
mov dword [esp + 0x4c], eax
push ecx
push edx
mov edi, 0x80004005
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.DLL_GetIconInfo]
test eax, eax
je 0x4118d5
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0xa0]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.DLL_GetObjectA]
test eax, eax
je 0x4118d5
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
cmp ecx, ebp
mov dword [esp + 0x1c], ebx
mov esi, eax
jne 0x41160f
mov dword [esp + 0x2c], 1
shr eax, 1
jmp 0x411613
mov dword [esp + 0x2c], ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xbc]
push ebp
push ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
push 3
push 0x15
push ecx
push ebx
push eax
call dword [edx + 0x90]
mov edi, eax
cmp edi, ebp
jl 0x4118d5
mov edx, esi
imul edx, ebx
shl edx, 2
push edx
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x74]
push ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x78], 0x28
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], esi
mov word [esp + 0x84], 1
mov word [esp + 0x86], 0x20
mov dword [esp + 0x88], ebp
call dword [sym.imp.USER32.DLL_GetDC]
mov ebp, dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
push eax
mov dword [esp + 0x3c], eax
call ebp
test eax, eax
mov dword [esp + 0x20], eax
jne 0x4116b7
mov edi, 0x80004005
jmp 0x4118d3
mov ecx, dword [esp + 0x4c]
mov edi, dword [sym.imp.GDI32.DLL_SelectObject]
push ecx
push eax
call edi
mov ecx, dword [esp + 0x4c]
mov ebx, eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x74]
push 0
push edx
mov edx, dword [esp + 0x28]
push eax
push esi
push 0
push ecx
push edx
call dword [sym.imp.GDI32.DLL_GetDIBits]
mov eax, dword [esp + 0x20]
push ebx
push eax
call edi
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x411755
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
imul ecx, ebx
shl ecx, 2
push ecx
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x24], eax
push edx
call ebp
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x54], ebp
jne 0x41172c
mov edi, 0x80004005
jmp 0x4118d3
mov eax, dword [esp + 0x50]
push eax
push ebp
call edi
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x74]
push 0
push ecx
push edx
push edi
push 0
push eax
push ebp
call dword [sym.imp.GDI32.DLL_GetDIBits]
jmp 0x41175d
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x70]
push 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
mov eax, dword [esp + 0x70]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x34], ebp
jbe 0x4118a5
dec edi
mov eax, ebx
imul edi, ebx
dec esi
lea ecx, [esp + 0x5c]
imul esi, ebx
neg eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x68], eax
xor edx, edx
test ebx, ebx
jbe 0x411877
mov dword [esp + 0x3c], 0xf
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4117d1
mov eax, dword [esp + 0x18]
lea ecx, [edi + edx]
mov esi, dword [eax + ecx*4]
mov ecx, dword [esp + 0x28]
add ecx, edx
mov eax, dword [eax + ecx*4]
jmp 0x4117e5
mov ecx, dword [esp + 0x24]
lea eax, [edi + edx]
shl eax, 2
mov esi, dword [eax + ecx]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ecx]
mov ecx, dword [esp + 0x58]
test eax, eax
lea eax, [edx + ebp]
lea eax, [ecx + eax*4]
jne 0x4117fd
or esi, 0xff000000
mov dword [eax], esi
jmp 0x411803
mov dword [eax], 0
mov ecx, dword [esp + 0xc4]
test ecx, ecx
je 0x411861
cmp edx, 0xc
jae 0x411861
cmp dword [esp + 0x34], 5
jae 0x411861
mov ebx, dword [esp + 0x30]
mov ecx, 0xccc0
mov esi, 0xa2a0
mov word [esp + 0x5c], cx
mov word [esp + 0x5e], si
mov word [esp + 0x62], si
mov word [esp + 0x64], cx
mov ecx, dword [esp + 0x3c]
mov esi, 1
mov word [esp + 0x60], 0xa4a0
shl esi, cl
xor ecx, ecx
mov cx, word [ebx]
test ecx, esi
je 0x41185d
or dword [eax], 0xff808080
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
inc edx
dec ecx
cmp edx, ebx
mov dword [esp + 0x3c], ecx
jb 0x4117b4
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
add edx, eax
inc ecx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x30]
add edx, 2
add edi, eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x10]
add ebp, ebx
cmp ecx, edx
mov dword [esp + 0x34], ecx
jb 0x4117a2
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 0x38]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xbc]
push edx
mov edx, dword [esp + 0x4c]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x4c]
push edx
push eax
call dword [ecx + 0x28]
mov edi, eax
test edi, edi
jl 0x4118d3
xor edi, edi
xor ebp, ebp
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.GDI32.DLL_DeleteObject]
cmp eax, ebp
je 0x4118e6
push eax
call esi
mov eax, dword [esp + 0x50]
cmp eax, ebp
je 0x4118f1
push eax
call esi
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x411901
push eax
push ebp
call dword [sym.imp.USER32.DLL_ReleaseDC]
mov eax, dword [esp + 0x54]
mov esi, dword [sym.imp.GDI32.DLL_DeleteDC]
cmp eax, ebp
je 0x411912
push eax
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x41191d
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x41192e
push eax
call sub.MSVCRT.DLL_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x41193f
push eax
call sub.MSVCRT.DLL_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41194d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret