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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xdc
mov dword [esp + 0x4c], eax
mov ebp, edx
mov dword [esp + 0x40], ecx
mov ebx, dword [esp + 0xf0]
cmp ecx, 3
jle 0x41ba88
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x558]
mov edi, 0x5fb611
mov ecx, 9
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x41ba6c
mov dword [esp + 0x38], 3
mov edx, dword [esp + 0x38]
lea ebx, [ebx + edx*4]
mov dword [esp + 0x3c], ebx
mov esi, ebx
mov ebx, edx
mov edi, dword [esp + 0x40]
jmp 0x41ba04
inc ebx
add esi, 4
cmp edi, ebx
jle 0x41babc
mov eax, dword [esi]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x558]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0040e394
test eax, eax
jne 0x41b9f8
mov eax, dword [0x68bb7c]
mov ebx, dword [eax + 0x120]
mov edx, dword [esi]
mov dword [esp], edx
call dword [eax + 0x558]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.__as_iconphoto:_not_a_photo_image
mov dword [esp + 8], eax
mov dword [esp + 4], str.cant_use__
mov dword [esp], ebp
call ebx
mov eax, 1
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x40], 4
je 0x41ba88
mov dword [esp + 0x4c], 0
mov dword [esp + 0x38], 4
jmp 0x41b9e1
mov dword [esp + 0xc], str.window___default__image1__image2_..._
mov dword [esp + 8], ebx
mov dword [esp + 4], 2
mov dword [esp], ebp
mov eax, dword [0x68bb7c]
call dword [eax + 0x428]
mov eax, 1
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x40]
sub ebx, dword [esp + 0x38]
lea eax, [ebx + ebx*8 - 9]
lea esi, [eax*4 + 0x28]
mov dword [esp], esi
mov eax, dword [0x68bb7c]
call dword [eax + 0x6b8]
mov dword [esp + 0x48], eax
test eax, eax
je 0x41bd94
xor eax, eax
mov edi, dword [esp + 0x48]
mov ecx, esi
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x48]
mov dword [ecx], ebx
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x40], edx
jle 0x41bd50
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x30], ecx
lea eax, [esp + 0xa4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], ebp
nop
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x558]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x44]
mov dword [esp], edx
call fcn.0040e394
mov esi, eax
lea ecx, [esp + 0x60]
mov dword [esp + 8], ecx
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0041203c
lea edx, [esp + 0x80]
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041212c
mov ecx, 0x14
mov edi, dword [esp + 0x30]
xor eax, eax
rep stosb byte es:[edi], al
mov dword [esp + 0x6c], 1
mov cl, 0x2c
mov edi, dword [esp + 0x2c]
rep stosb byte es:[edi], al
mov dword [esp + 0xa4], 0x28
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x60]
neg eax
mov dword [esp + 0xac], eax
mov word [esp + 0xb0], 1
mov word [esp + 0xb2], 0x20
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea edx, [esp + 0x64]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
lea ecx, [esp + 0xa4]
mov dword [esp + 4], ecx
mov dword [esp], 0
call sub.GDI32.dll_CreateDIBSection
sub esp, 0x18
mov dword [esp + 0x7c], eax
test eax, eax
je 0x41bd9e
mov ebp, dword [esp + 0x60]
imul ebp, dword [esp + 0x5c]
shl ebp, 2
test ebp, ebp
jle 0x41bc75
xor eax, eax
lea esi, [esi]
mov ecx, dword [esp + 0x80]
mov bl, byte [ecx + eax + 2]
mov ecx, dword [esp + 0x64]
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x80]
mov bl, byte [ebx + eax + 1]
mov esi, dword [esp + 0x64]
mov byte [esi + eax + 1], bl
mov ecx, dword [esp + 0x80]
mov bl, byte [ecx + eax]
mov ecx, dword [esp + 0x64]
mov byte [ecx + eax + 2], bl
mov ecx, dword [esp + 0x80]
mov bl, byte [ecx + eax + 3]
mov ecx, dword [esp + 0x64]
mov byte [ecx + eax + 3], bl
add eax, 4
cmp ebp, eax
jg 0x41bc24
mov word [esp + 0xb2], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [esp + 0x68]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
lea edx, [esp + 0xa4]
mov dword [esp + 4], edx
mov dword [esp], 0
call sub.GDI32.dll_CreateDIBSection
sub esp, 0x18
mov dword [esp + 0x78], eax
test eax, eax
je 0x41be4e
mov ecx, dword [esp + 0x5c]
imul ecx, dword [esp + 0x60]
test ecx, ecx
js 0x41bd8c
sar ecx, 3
mov edi, dword [esp + 0x68]
xor eax, eax
rep stosb byte es:[edi], al
lea edx, [esp + 0x6c]
mov dword [esp], edx
call sub.USER32.dll_CreateIconIndirect
push ebp
mov esi, eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call sub.GDI32.dll_DeleteObject
push eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sub.GDI32.dll_DeleteObject
push eax
test esi, esi
je 0x41bdf6
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x60]
mov dword [edx + 8], eax
mov dword [edx + 0xc], 4
mov dword [edx + 0x24], esi
inc dword [esp + 0x38]
add dword [esp + 0x3c], 4
add edx, 0x24
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x38], ecx
jne 0x41bb24
mov ebp, dword [esp + 0x44]
mov dword [esp], 8
mov eax, dword [0x68bb7c]
call dword [eax + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 4], eax
mov dword [ebx], 1
mov ecx, dword [esp + 0x4c]
mov edx, ebx
mov eax, ebp
call fcn.0041b408
test eax, eax
jne 0x41beb3
xor eax, eax
jmp 0x41ba60
add ecx, 7
jmp 0x41bcd6
mov eax, 1
jmp 0x41ba60
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
mov eax, dword [0x68bb7c]
mov ebx, dword [eax + 0x120]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov dword [esp], edx
call dword [eax + 0x558]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x5fb696
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_create_color_bitmap_for__
mov dword [esp], ebp
call ebx
mov eax, 1
jmp 0x41ba60
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp], ecx
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
mov eax, dword [0x68bb7c]
mov ebx, dword [eax + 0x120]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov dword [esp], edx
call dword [eax + 0x558]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x5fb696
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_create_icon_for__
mov dword [esp], ebp
call ebx
mov eax, 1
jmp 0x41ba60
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call sub.GDI32.dll_DeleteObject
push eax
mov ecx, dword [esp + 0x48]
mov dword [esp], ecx
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
mov eax, dword [0x68bb7c]
mov ebx, dword [eax + 0x120]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov dword [esp], edx
call dword [eax + 0x558]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x5fb696
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_create_mask_bitmap_for__
mov dword [esp], ebp
call ebx
mov eax, 1
jmp 0x41ba60
mov eax, ebx
call fcn.0041910c
mov eax, 1
jmp 0x41ba60