Function at 0x40c111
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push edi
movzx edi, word [ebp + 8]
push 0xf0
push edi
push dword [0x4414e0]
mov dword [ebp - 0x1c], ecx
call esi
and dword [ebp - 0x18], 0
and dword [ebp + 8], 0
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
je 0x40c15e
push eax
push dword [0x4414e0]
call ebx
test eax, eax
je 0x40c15e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
push 5
push edi
push dword [0x4414e0]
call esi
test eax, eax
je 0x40c40c
push eax
push dword [0x4414e0]
call ebx
test eax, eax
je 0x40c404
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c404
xor eax, eax
cmp word [esi + 2], 0xffff
push esi
sete al
mov dword [ebp - 4], eax
call fcn.0040162d
movzx edi, word [eax]
push esi
mov dword [ebp - 0x24], edi
call fcn.00401641
pop ecx
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x1c]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [ebp - 0x10], 0
test di, di
mov dword [ebp - 0xc], eax
jbe 0x40c40c
cmp dword [ebp - 4], 0
je 0x40c1e0
mov ebx, dword [esi + 0x14]
jmp 0x40c1e4
movzx ebx, word [esi + 0x10]
push dword [ebp - 4]
push esi
call fcn.00409201
test al, al
pop ecx
pop ecx
je 0x40c3a9
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
push ebx
call fcn.004091c3
and dword [ebp - 8], 0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40c251
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40c3de
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push dword [ebp + 8]
push ebx
push eax
call fcn.004010c8
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 8]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call fcn.0040209a
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 8], eax
jl 0x40c391
and dword [ebp + 8], 0
call fcn.004046d3
mov edi, dword [ebp - 4]
test edi, edi
lea eax, [esi + 0x18]
jne 0x40c284
lea eax, [esi + 0x12]
test edi, edi
mov dword [ebp - 0x20], eax
je 0x40c291
movzx eax, word [esi + 0xc]
jmp 0x40c295
movzx eax, word [esi + 8]
test edi, edi
movsx edx, ax
mov dword [ebp - 0x34], edx
je 0x40c2a5
movzx eax, word [esi + 0xe]
jmp 0x40c2a9
movzx eax, word [esi + 0xa]
test edi, edi
movsx ecx, ax
mov dword [ebp - 0x30], ecx
je 0x40c2b9
movzx eax, word [esi + 0x10]
jmp 0x40c2bd
movzx eax, word [esi + 0xc]
movsx eax, ax
add eax, edx
test edi, edi
mov dword [ebp - 0x2c], eax
je 0x40c2cf
movzx eax, word [esi + 0x12]
jmp 0x40c2d3
movzx eax, word [esi + 0xe]
mov ebx, dword [ebp - 0x1c]
movsx eax, ax
add eax, ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
test edi, edi
je 0x40c2f4
mov edx, dword [esi + 0x14]
jmp 0x40c2f8
movzx edx, word [esi + 0x10]
test edi, edi
je 0x40c301
mov edi, dword [esi + 4]
jmp 0x40c303
xor edi, edi
cmp dword [ebp - 4], 0
je 0x40c30e
mov eax, dword [esi + 8]
jmp 0x40c310
mov eax, dword [esi]
push 0
push ecx
mov ecx, esp
push edi
or eax, 0x10000
push eax
xor edi, edi
push edi
push ecx
mov dword [ecx], edx
mov eax, esp
lea ecx, [ebp - 0x34]
mov dword [eax], ecx
push dword [ebx + 4]
lea ecx, [ebp + 8]
call fcn.004096f0
mov ebx, dword [ebp + 8]
cmp ebx, edi
je 0x40c389
cmp dword [ebp - 4], edi
je 0x40c34e
mov eax, dword [esi]
cmp eax, edi
je 0x40c34e
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [ebp - 0x14]
lea ecx, [ebp + 8]
push edi
push dword [ebp - 8]
push dword [ebp - 0x20]
call fcn.0040bc39
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x40c3ec
cmp word [ebp - 0x10], di
jne 0x40c374
mov dword [ebp - 0xc], edi
push 0x13
push edi
push edi
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0xc], ebx
jmp 0x40c391
call fcn.004028ca
mov dword [ebp + 8], eax
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40c3be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40c3be
cmp word [ebp - 0x10], 0
je 0x40c3be
push 2
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push esi
call fcn.004016c1
inc dword [ebp - 0x10]
mov esi, eax
mov ax, word [ebp - 0x10]
cmp ax, word [ebp - 0x24]
pop ecx
pop ecx
jb 0x40c1d5
jmp 0x40c40c
mov eax, dword [ebp - 8]
mov dword [ebp + 8], 0x8007000e
test eax, eax
jmp 0x40c3fa
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x40c40c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40c40c
call fcn.004028ca
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4