Function at 0x403e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4090d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], 0x80004005
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.00403b70
cmp eax, ebx
je 0x403e7f
push 0x40c570
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], ebx
call sub.MSVCR71.dll__CxxThrowException
cmp dword [edi + 0x24], ebx
jne 0x403f3c
mov esi, dword [ebp + 8]
mov eax, esi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov ecx, esi
inc eax
and ecx, 0x8000000f
jns 0x403ea6
dec ecx
or ecx, 0xfffffff0
inc ecx
mov dword [ebp - 0x24], ecx
xor ecx, ecx
mov cx, word [edi + 8]
movzx edx, ax
mov eax, dword [edi + 0xc]
push ecx
push edx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
cmp eax, ebx
je 0x40402d
mov ecx, dword [edi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40402d
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov esi, eax
xor edx, edx
cmp edx, 0x10
mov dword [ebp - 0x18], edx
jge 0x404018
test ecx, ecx
jne 0x404018
mov ax, word [esi]
add esi, 2
test ax, ax
je 0x403f39
movzx edi, ax
cmp edx, dword [ebp - 0x24]
jne 0x403f33
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push edi
push esi
push eax
mov dword [ebx], eax
call dword [sym.imp.MSVCR71.dll_wcsncpy]
mov edx, dword [ebx]
mov ecx, 1
mov word [edx + edi*2], 0
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x1c], ecx
lea esi, [esi + edi*2]
mov edi, dword [ebp - 0x14]
inc edx
jmp 0x403ee4
push 0x1001
call sub.MFC71.DLL_operator_new
mov esi, eax
add esp, 4
xor eax, eax
cmp esi, ebx
setne al
push str.lpszString__new_TCHAR_MAX_MESSAGE_LENsizeof_TCHAR___
mov ecx, edi
mov dword [ebp - 0x18], esi
push eax
call fcn.004076f0
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0xc]
push 0x1000
push esi
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x40400c
mov dword [ebp - 0x1c], 1
call dword [0x40e0b0]
cmp esi, ebx
je 0x403fec
call dword [0x40e0b0]
push 0
push 0
push 0xffffffffffffffff
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [esi - 1]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
je 0x403ff5
mov eax, dword [ebp - 0x18]
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x403ff5
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x24]
call fcn.00401680
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebx], eax
jmp 0x40400f
lea ecx, [ebp - 0x24]
call fcn.00401680
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x18]
mov eax, edi
mov edi, dword [ebp - 0x14]
mov dword [ebx], eax
jmp 0x40400f
mov ebx, dword [ebp + 0xc]
push esi
call sub.MFC71.DLL_operator_delete
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404032
cmp eax, 1
jne 0x404070
mov dword [ebp - 0x20], 0
jmp 0x404070
mov ebx, dword [ebp + 0xc]
jmp 0x404035
mov esi, dword [ebp + 8]
mov ecx, dword [edi + 0x34]
test ecx, ecx
je 0x404086
push ebx
push esi
call fcn.00403e30
test eax, eax
jne 0x404086
cmp dword [ebx], 0x40ac94
jne 0x404024
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [ebp + 8]
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00407680
lea ecx, [ebp + 8]
call dword [0x40a118]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea edx, [ebp + 8]
push edx
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00407680
push 0x40ad94
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
jmp 0x404067