Function at 0x40c6b0
Capabilities:
Extract resource via kernel32 functions
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x439004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x234], ebx
mov dword [0x43a4c8], ebx
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
movzx ecx, ax
push 0x6b
push dword [0x43a4c0]
shr ecx, 2
shr eax, 0x13
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x238], eax
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push ebx
call edi
push 0x6b
push dword [0x43a4c0]
call esi
push eax
push 0
push 0x80
push ebx
call edi
push 0x3c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [ebp - 0x234]
mov ebx, eax
push ebx
push 0xffffffffffffffeb
push esi
mov dword [ebp - 0x230], ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x3e9
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebx], eax
xor eax, eax
push 0x104
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22c]
push eax
push 0xda
push 0
mov dword [ebp - 0x258], 3
mov dword [ebp - 0x244], 0xffffffff
call esi
test eax, eax
jne 0x40c7b1
push 0x435be4
lea eax, [ebp - 0x22c]
push 0x104
push eax
call fcn.00418211
add esp, 0xc
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x258]
push eax
push 0
push 0x133e
push dword [ebx]
call edi
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0xdb
push 0
call esi
test eax, eax
jne 0x40c801
push 0x435be4
lea eax, [ebp - 0x22c]
push 0x104
push eax
call fcn.00418211
add esp, 0xc
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x258]
push eax
push 1
push 0x133e
push dword [ebx]
call edi
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0xdc
push 0
call esi
test eax, eax
jne 0x40c851
push 0x435be4
lea eax, [ebp - 0x22c]
push 0x104
push eax
call fcn.00418211
add esp, 0xc
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x258]
push eax
push 2
push 0x133e
push dword [ebx]
call edi
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0x90
push 0
call esi
test eax, eax
jne 0x40c8a1
push 0x435be4
lea eax, [ebp - 0x22c]
push 0x104
push eax
call fcn.00418211
add esp, 0xc
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x258]
push eax
push 3
push 0x133e
push dword [ebx]
call edi
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0xe2
push 0
call esi
test eax, eax
jne 0x40c8f1
push 0x435be4
lea eax, [ebp - 0x22c]
push 0x104
push eax
call fcn.00418211
add esp, 0xc
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x258]
push eax
push 4
push 0x133e
push dword [ebx]
call edi
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0xf5
push 0
call esi
test eax, eax
jne 0x40c941
push 0x435be4
lea eax, [ebp - 0x22c]
push 0x104
push eax
call fcn.00418211
add esp, 0xc
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x258]
push eax
push 5
push 0x133e
push dword [ebx]
call edi
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0xdd
push 0
call esi
test eax, eax
jne 0x40c991
push 0x435be4
lea eax, [ebp - 0x22c]
push 0x104
push eax
call fcn.00418211
add esp, 0xc
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x258]
push eax
push 6
push 0x133e
push dword [ebx]
call edi
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0xdf
push 0
call esi
test eax, eax
jne 0x40c9e1
push 0x435be4
lea eax, [ebp - 0x22c]
push 0x104
push eax
call fcn.00418211
add esp, 0xc
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x258]
push eax
push 7
push 0x133e
push dword [ebx]
call edi
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0xde
push 0
call esi
test eax, eax
jne 0x40ca31
push 0x435be4
lea eax, [ebp - 0x22c]
push 0x104
push eax
call fcn.00418211
add esp, 0xc
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x258]
push eax
push 8
push 0x133e
push dword [ebx]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push 0x82
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push dword [0x43a4c0]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call esi
mov ecx, dword [ebp - 0x230]
push 5
push 0x83
push 0
mov dword [ecx + 0x18], eax
call ebx
push eax
push dword [0x43a4c0]
call edi
push eax
call esi
mov ecx, dword [ebp - 0x230]
push 5
push 0x86
push 0
mov dword [ecx + 0x1c], eax
call ebx
push eax
push dword [0x43a4c0]
call edi
push eax
call esi
mov ecx, dword [ebp - 0x230]
push 5
push 0x87
push 0
mov dword [ecx + 0x20], eax
call ebx
push eax
push dword [0x43a4c0]
call edi
push eax
call esi
mov ecx, dword [ebp - 0x230]
push 5
push 0x88
push 0
mov dword [ecx + 0x30], eax
call ebx
push eax
push dword [0x43a4c0]
call edi
push eax
call esi
mov ecx, dword [ebp - 0x230]
push 5
push 0x89
push 0
mov dword [ecx + 0x24], eax
call ebx
push eax
push dword [0x43a4c0]
call edi
push eax
call esi
mov ecx, dword [ebp - 0x230]
push 5
push 0x8a
push 0
mov dword [ecx + 0x34], eax
call ebx
push eax
push dword [0x43a4c0]
call edi
push eax
call esi
mov ecx, dword [ebp - 0x230]
push 5
push 0xef
push 0
mov dword [ecx + 0x28], eax
call ebx
push eax
push dword [0x43a4c0]
call edi
push eax
call esi
mov ecx, dword [ebp - 0x230]
push 5
push 0x85
push 0
mov dword [ecx + 0x2c], eax
call ebx
push eax
push dword [0x43a4c0]
call edi
push eax
call esi
mov ebx, dword [ebp - 0x230]
mov dword [ebx + 0x38], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp - 0x10]
movsx ecx, word [eax + 0x16]
cmp ecx, edx
jle 0x40cba1
mov edx, ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebx + 0x18]
movsx eax, word [eax + 0x18]
mov ecx, dword [ebp - 0xc]
cmp eax, ecx
cmovg ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
movsx esi, word [eax + 0x16]
cmp esi, edx
jle 0x40cbc3
mov edx, esi
mov dword [ebp - 0x10], edx
mov eax, dword [ebx + 0x1c]
movsx eax, word [eax + 0x18]
cmp eax, ecx
cmovg ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x20]
movsx esi, word [eax + 0x16]
cmp esi, edx
jle 0x40cbe2
mov edx, esi
mov dword [ebp - 0x10], edx
mov eax, dword [ebx + 0x20]
movsx eax, word [eax + 0x18]
cmp eax, ecx
cmovg ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x24]
movsx esi, word [eax + 0x16]
cmp esi, edx
jle 0x40cc01
mov edx, esi
mov dword [ebp - 0x10], edx
mov eax, dword [ebx + 0x24]
movsx eax, word [eax + 0x18]
cmp eax, ecx
cmovg ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x28]
movsx esi, word [eax + 0x16]
cmp esi, edx
jle 0x40cc20
mov edx, esi
mov dword [ebp - 0x10], edx
mov eax, dword [ebx + 0x28]
movsx eax, word [eax + 0x18]
cmp eax, ecx
cmovg ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x2c]
movsx esi, word [eax + 0x16]
cmp esi, edx
jle 0x40cc3f
mov edx, esi
mov dword [ebp - 0x10], edx
mov eax, dword [ebx + 0x2c]
movsx eax, word [eax + 0x18]
cmp eax, ecx
cmovg ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x30]
movsx esi, word [eax + 0x16]
cmp esi, edx
jle 0x40cc5e
mov edx, esi
mov dword [ebp - 0x10], edx
mov eax, dword [ebx + 0x30]
movsx eax, word [eax + 0x18]
cmp eax, ecx
cmovg ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x34]
movsx esi, word [eax + 0x16]
cmp esi, edx
jle 0x40cc7d
mov edx, esi
mov dword [ebp - 0x10], edx
mov eax, dword [ebx + 0x34]
movsx eax, word [eax + 0x18]
cmp eax, ecx
cmovg ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x38]
movsx esi, word [eax + 0x16]
cmp esi, edx
jle 0x40cc9a
mov dword [ebp - 0x10], esi
mov eax, dword [ebx + 0x38]
movsx eax, word [eax + 0x18]
cmp eax, ecx
cmovg ecx, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x234]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_MapDialogRect]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x18]
push eax
push 1
push 0x1328
push dword [ebx]
call edi
mov eax, dword [ebp - 0x238]
sub eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x23c]
sub eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [ebp - 0x18]
push eax
lea esi, [ebx + 8]
push esi
call dword [sym.imp.USER32.dll_CopyRect]
push esi
push 0
push 0x1328
push dword [ebx]
call edi
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
sub eax, edx
mov ecx, dword [ebp - 0x18]
push 4
push eax
mov eax, dword [ebp - 0x10]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [ebx]
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
call ebx
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 8
call edi
mov esi, eax
add esi, dword [ebp - 0x238]
push 6
push 4
add esi, esi
call edi
add eax, esi
add eax, dword [ebp - 0xc]
push eax
push 7
call edi
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x234]
lea eax, [ecx + eax*2]
add eax, dword [ebp - 0x23c]
push eax
push 0
push 0
push 0
push esi
call ebx
call fcn.0040ea40
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0
push 0
mov edi, eax
push 0x130b
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x40cd96
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
push 0x40cde0
push esi
push dword [edi + ebx*4 + 0x18]
push dword [0x43a4c0]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [edi + 4], eax
mov dword [0x43a4cc], eax
mov dword [0x43a4d4], ebx
call fcn.0040ffb0
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414df1
mov esp, ebp
pop ebp
ret 0xc