Function at 0x40c090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x40df70
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x415120]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
movzx esi, word [esp + 0x58]
mov eax, dword [0x415264]
mov edi, dword [sym.imp.kernel32.dll_FindResourceW]
push 0xf0
push esi
push eax
call edi
mov ebx, dword [sym.imp.kernel32.dll_LockResource]
mov ebp, dword [sym.imp.kernel32.dll_LoadResource]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x58], ecx
cmp eax, ecx
je 0x40c103
mov ecx, dword [0x415264]
push eax
push ecx
call ebp
test eax, eax
je 0x40c103
push eax
call ebx
mov dword [esp + 0x28], eax
mov edx, dword [0x415264]
push 5
push esi
push edx
call edi
xor esi, esi
cmp eax, esi
je 0x40c438
push eax
mov eax, dword [0x415264]
push eax
call ebp
cmp eax, esi
je 0x40c42f
push eax
call ebx
cmp eax, esi
je 0x40c42f
movzx ecx, word [eax + 2]
xor ebx, ebx
mov edx, 0xffff
cmp cx, dx
sete bl
cmp cx, dx
lea ecx, [eax + 0x10]
mov dword [esp + 0x14], ebx
je 0x40c155
lea ecx, [eax + 8]
movzx edi, word [ecx]
push eax
mov dword [esp + 0x34], edi
call fcn.00401290
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x1c], eax
xor edx, edx
xor eax, eax
mov dword [esp + 0x24], edx
cmp ax, di
jae 0x40c438
cmp ebx, esi
je 0x40c198
mov ecx, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
jmp 0x40c19f
movzx ecx, word [ebp + 0x10]
lea eax, [ebp + 0x12]
cmp word [eax], 0x7b
jne 0x40c3ab
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x58]
push edx
push eax
push ecx
mov dword [esp + 0x64], esi
call fcn.004029a0
add esp, 0xc
mov edi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x50], esi
cmp edi, esi
je 0x40c216
push edi
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40c3e7
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, dword [esp + 0x58]
push edi
push ecx
push edi
push eax
call dword [sym.imp.MSVCR90.dll_memcpy_s]
push eax
call fcn.00401100
add esp, 0x14
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
lea edx, [esp + 0x18]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor esi, esi
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x58], 1
call fcn.00402230
mov ebx, dword [esp + 0x34]
add esp, 8
cmp eax, esi
mov dword [esp + 0x58], eax
jl 0x40c385
mov dword [esp + 0x58], esi
call fcn.0040b9a0
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x40c25b
movzx eax, word [ebp + 0xc]
lea edi, [ebp + 0x18]
jmp 0x40c262
movzx eax, word [ebp + 8]
lea edi, [ebp + 0x12]
movsx edx, ax
mov dword [esp + 0x38], edx
cmp ecx, esi
je 0x40c273
movzx eax, word [ebp + 0xe]
jmp 0x40c277
movzx eax, word [ebp + 0xa]
movsx ecx, ax
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x14], esi
je 0x40c28a
movzx eax, word [ebp + 0x10]
jmp 0x40c28e
movzx eax, word [ebp + 0xc]
cwde
add eax, edx
mov dword [esp + 0x40], eax
cmp dword [esp + 0x14], esi
je 0x40c2a1
movzx eax, word [ebp + 0x12]
jmp 0x40c2a5
movzx eax, word [ebp + 0xe]
movsx edx, ax
add edx, ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x38]
mov dword [esp + 0x44], edx
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_MapDialogRect]
cmp dword [esp + 0x14], esi
je 0x40c2d2
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 8]
jmp 0x40c2db
movzx esi, word [ebp + 0x10]
mov eax, dword [ebp]
xor edx, edx
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov edx, dword [esp + 0x2c]
or eax, 0x10000
push eax
push 0
push ecx
mov dword [ecx], esi
mov eax, esp
lea ecx, [esp + 0x50]
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [esp + 0x4c], esp
push eax
lea ecx, [esp + 0x74]
call fcn.00403480
mov esi, dword [esp + 0x58]
test esi, esi
je 0x40c37a
cmp dword [esp + 0x14], 0
je 0x40c32b
mov eax, dword [ebp]
test eax, eax
je 0x40c32b
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov ecx, dword [esp + 0x18]
push ebx
push 0
push 0x410214
push 0
push 0
push ecx
push edi
lea ecx, [esp + 0x74]
call fcn.0040b280
mov dword [esp + 0x58], eax
test eax, eax
jl 0x40c409
cmp word [esp + 0x24], 0
jne 0x40c35e
xor eax, eax
jmp 0x40c362
mov eax, dword [esp + 0x1c]
push 0x13
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x1c], esi
jmp 0x40c383
call fcn.00402980
mov dword [esp + 0x58], eax
xor esi, esi
push ebx
mov byte [esp + 0x54], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], 0xffffffff
cmp eax, esi
je 0x40c3c1
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x40c3c1
cmp dx, si
je 0x40c3c1
mov ecx, dword [esp + 0x1c]
push 2
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x14]
push ebx
push ebp
call fcn.00401330
mov edx, dword [esp + 0x2c]
inc edx
add esp, 8
mov ebp, eax
mov dword [esp + 0x24], edx
cmp dx, word [esp + 0x30]
jb 0x40c18c
jmp 0x40c438
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], 0x8007000e
mov dword [esp + 0x50], 0xffffffff
test eax, eax
je 0x40c438
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x40c438
push ebx
mov byte [esp + 0x54], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], 0xffffffff
test eax, eax
je 0x40c438
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40c438
call fcn.00402980
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4