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

Disassembly:
sub esp, 0xac
push ebx
xor ebx, ebx
push esi
mov esi, 0x80004005
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x3c]
mov ecx, 0x14
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x417bd0
mov ecx, dword [esp + 0xbc]
push edi
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x417f27
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0xa0]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x417f27
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x50]
test edx, edx
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, ecx
mov dword [esp + 0x1c], ebp
mov edi, eax
jne 0x417c38
mov byte [esp + 0x13], 1
shr eax, 1
jmp 0x417c3d
mov byte [esp + 0x13], 0
push 0
lea esi, [esp + 0x1c]
push esi
push 3
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0xcc]
mov edx, dword [eax]
push 0x15
push esi
push ecx
push eax
call dword [edx + 0x90]
mov esi, eax
test esi, esi
jl 0x417f26
mov eax, edi
imul eax, ebp
shl eax, 2
push eax
call sub.MFC71.DLL_operator_new
mov ebx, eax
add esp, 4
mov dword [esp + 0x3c], ebx
lea eax, [esp + 0x78]
mov ecx, 0x2c
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x417c90
push 0
mov dword [esp + 0x7c], 0x28
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], edi
mov word [esp + 0x88], 1
mov word [esp + 0x8a], 0x20
mov dword [esp + 0x8c], 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x417cf1
mov esi, 0x80004005
jmp 0x417f26
mov ecx, dword [esp + 0x50]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push eax
call esi
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x7c]
push edx
push ebx
push edi
mov ebp, eax
mov eax, dword [esp + 0x60]
push 0
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edx, dword [esp + 0x20]
push ebp
push edx
call esi
mov al, byte [esp + 0x13]
test al, al
mov ebp, dword [esp + 0x1c]
jne 0x417d91
mov eax, dword [esp + 0x14]
imul eax, ebp
shl eax, 2
push eax
call sub.MFC71.DLL_operator_new
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x417d64
mov esi, 0x80004005
jmp 0x417f26
mov edx, dword [esp + 0x54]
push edx
push eax
call esi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x54]
push 0
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x34]
push ecx
push esi
push 0
push edx
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
jmp 0x417d95
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x78]
push edx
push eax
call dword [ecx + 0x34]
test esi, esi
mov dword [esp + 0x24], 0
jbe 0x417ef8
mov eax, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov eax, ebp
neg eax
mov ecx, ebp
neg ecx
shl eax, 2
lea edx, [esi*4 - 4]
dec edi
imul edx, ebp
imul edi, ebp
add edx, ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], edx
jmp 0x417df0
xor edi, edi
test ebp, ebp
jbe 0x417ebe
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
sub eax, ebx
mov ecx, 0xf
mov dword [esp + 0x6c], eax
lea ecx, [ecx]
mov al, byte [esp + 0x13]
test al, al
je 0x417e25
mov esi, dword [esp + 0x34]
mov eax, dword [edx]
add esi, edi
mov esi, dword [ebx + esi*4]
jmp 0x417e2e
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + edx]
mov esi, dword [edx]
test esi, esi
jne 0x417e3c
or eax, 0xff000000
mov dword [ebp], eax
jmp 0x417e43
mov dword [ebp], 0
mov al, byte [esp + 0xc8]
test al, al
je 0x417e9c
cmp edi, 0xc
jae 0x417e9c
mov eax, dword [esp + 0x24]
cmp eax, 5
jae 0x417e9c
mov esi, 0xa2a0
mov word [esp + 0x5a], si
mov word [esp + 0x5e], si
mov ebx, 0xccc0
mov esi, 1
mov word [esp + 0x58], bx
mov word [esp + 0x60], bx
mov ebx, dword [esp + 0x3c]
mov word [esp + 0x5c], 0xa4a0
movzx eax, word [esp + eax*2 + 0x58]
shl esi, cl
test esi, eax
je 0x417e9c
or dword [ebp], 0xff808080
mov eax, dword [esp + 0x1c]
inc edi
add edx, 4
add ebp, 4
dec ecx
cmp edi, eax
jb 0x417e10
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x68]
mov ebp, eax
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
inc esi
mov dword [esp + 0x24], esi
lea esi, [ebp*4]
add edi, esi
mov esi, dword [esp + 0x34]
add esi, ecx
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x24]
add edx, eax
cmp esi, edi
mov dword [esp + 0x40], edx
jb 0x417df0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc0]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push ecx
push eax
call dword [edx + 0x28]
mov esi, eax
test esi, esi
jl 0x417f26
xor esi, esi
pop ebp
mov eax, dword [esp + 0x4c]
test eax, eax
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x417f38
push eax
call edi
mov eax, dword [esp + 0x50]
test eax, eax
je 0x417f43
push eax
call edi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x417f54
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x28]
test eax, eax
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
je 0x417f65
push eax
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x417f70
push eax
call edi
mov eax, dword [esp + 0x24]
test eax, eax
pop edi
je 0x417f82
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
test ebx, ebx
je 0x417f8f
push ebx
call sub.MFC71.DLL_operator_delete
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x417f9d
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
pop esi
pop ebx
add esp, 0xac
ret 0xc