Function at 0x40afd0
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 8
test dword [0x4283b4], 0x200
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov byte [0x429260], 0
jne 0x40b052
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebp, dword [sym.imp.USER32.dll_LoadIconW]
push eax
call ebp
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x32
mov ebx, eax
call edi
push eax
push 0x31
call edi
push eax
push 1
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
test edi, edi
jne 0x40b02e
mov edi, ebx
mov eax, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push eax
call ebx
mov ecx, dword [esi + 4]
push edi
push 0
push 0x80
push ecx
call ebx
jmp 0x40b058
mov ebp, dword [sym.imp.USER32.dll_LoadIconW]
test dword [0x4283b4], 0x4000
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x40b0dc
mov edx, dword [esi + 4]
push 0x4b2
push edx
call edi
mov ebp, eax
mov eax, dword [esi + 4]
push 0x4b2
push eax
call edi
push 0xfffffffffffffff0
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
call ebp
or eax, 0x80
push eax
push 0xfffffffffffffff0
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongW]
call ebx
mov ecx, dword [esi + 4]
push 0x4b5
push ecx
call edi
mov edx, dword [esi + 4]
push 0x4b5
push edx
mov dword [esp + 0x18], eax
call edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push 0xfffffffffffffff0
push eax
call ebp
mov ecx, dword [esp + 0x14]
or eax, 0x80
push eax
push 0xfffffffffffffff0
push ecx
call ebx
mov ebp, dword [sym.imp.USER32.dll_LoadIconW]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 4]
push eax
push 0x4b2
push edx
call edi
push eax
mov ecx, esi
call fcn.00409870
mov eax, dword [esi + 0xc]
push eax
mov ecx, esi
call fcn.0040a640
mov eax, dword [esi + 8]
and eax, 3
cmp eax, 3
ja case.default.0x40b10d
jmp dword [eax*4 + 0x40b314]
push 0x1b
call fcn.00404530
add esp, 4
push eax
push 0x4b3
mov ecx, esi
call fcn.0040a600
push 0x1c
jmp 0x40b1a2
push 0x19
call fcn.00404530
add esp, 4
push eax
push 0x4b3
mov ecx, esi
call fcn.0040a600
push 0
push 0x4b4
mov ecx, esi
call fcn.004098b0
jmp case.default.0x40b10d
push 0x1a
call fcn.00404530
add esp, 4
push eax
push 0x4b4
mov ecx, esi
call fcn.0040a600
push 0
push 0x4b3
mov ecx, esi
call fcn.004098b0
push 0x4b4
mov ecx, esi
call fcn.004096d0
jmp case.default.0x40b10d
push 0x19
call fcn.00404530
add esp, 4
push eax
push 0x4b3
mov ecx, esi
call fcn.0040a600
push 0x1a
call fcn.00404530
add esp, 4
push eax
push 0x4b4
mov ecx, esi
call fcn.0040a600
cmp dword [esi + 0x38], 0
je 0x40b25e
mov ecx, dword [esi + 4]
mov ebp, dword [sym.imp.USER32.dll_GetWindow]
push 5
push ecx
call ebp
mov edi, eax
test edi, edi
je 0x40b1e9
push edi
call fcn.00406190
add esp, 4
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x40b1d5
mov edx, dword [esi + 4]
push 5
push edx
call ebp
mov edi, eax
test edi, edi
je 0x40b217
push edi
call fcn.00406220
add esp, 4
test eax, eax
je 0x40b20c
mov eax, dword [esi + 4]
push 5
push eax
jmp 0x40b20f
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x40b1f7
mov ecx, dword [esi + 4]
push 5
push ecx
call ebp
mov edi, eax
test edi, edi
je 0x40b239
push edi
call fcn.00404340
add esp, 4
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x40b225
test byte [0x4283b4], 8
jne 0x40b303
mov ecx, esi
call fcn.00409dc0
mov ecx, esi
call fcn.00409800
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esi + 8]
and eax, 0x1c
add eax, 0xfffffffc
cmp eax, 0x10
ja case.0x40b273.5
movzx edx, byte [eax + 0x40b33c]
jmp dword [edx*4 + 0x40b324]
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
jmp 0x40b2a3
push 0x7f02
jmp 0x40b2a1
push 0x7f01
jmp 0x40b2a1
push 0x7f04
jmp 0x40b2a1
push 0x7f03
push 0
call ebp
test eax, eax
je case.0x40b273.5
push eax
mov eax, dword [esi + 4]
push 1
push 0x172
push 0x4b1
push eax
mov dword [esi + 0x30], 1
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40b2e1
push 0
push 0x4b1
mov ecx, esi
mov dword [esi + 0x30], 0
call fcn.004098b0
test byte [0x4283b4], 8
jne 0x40b2f1
mov ecx, esi
call fcn.00409dc0
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
mov ecx, esi
call fcn.00409800
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret