Function at 0x405cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x452be0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46f7c0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0x414]
mov eax, dword [ebp + 0x410]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0x418]
xor edi, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
xor ebx, ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x405e08
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdq
mov esi, eax
shld edx, esi, 1
add esi, esi
mov eax, esi
add eax, 0x80000000
adc edx, ebx
mov dword [ebp - 0x2c], edx
jne 0x405e00
cmp eax, 0xffffffff
ja 0x405e00
cmp esi, 0x400
jg 0x405dad
push esi
call fcn.004027c0
add esp, 4
test al, al
je 0x405dad
mov eax, esi
call fcn.0043c300
mov dword [ebp - 0x10], esp
mov ebx, esp
jmp 0x405dd1
or eax, 0xffffffff
sub eax, esi
cmp eax, 8
jb 0x405df6
lea eax, [esi + 8]
push eax
call fcn.0043bf06
add esp, 4
cmp eax, ebx
je 0x405e00
mov edi, eax
mov dword [eax], ebx
mov dword [ebp - 0x20], edi
lea ebx, [eax + 8]
test ebx, ebx
je 0x405e00
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 3
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x405e02
push 0x80070216
call fcn.00401bd0
xor eax, eax
xor ebx, ebx
cmp eax, ebx
jne 0x405e39
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x405e18
lea ecx, [ebp]
call fcn.00402750
cmp edi, ebx
je 0x405e2f
lea esp, [esp]
push edi
mov edi, dword [edi]
call fcn.0043bf9a
add esp, 4
cmp edi, ebx
jne 0x405e20
mov eax, 0x8007000e
jmp 0x405f39
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x405e58
call fcn.00401d70
mov esi, eax
jmp 0x405f14
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x405e77
call fcn.00401d70
jmp 0x405f0b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x405e8d
call fcn.00401d70
jmp 0x405f0b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x14], esi
cmp eax, esi
jae 0x405ea8
mov esi, 0x8007000e
jmp 0x405f0d
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00403450
mov dword [ebp - 4], 1
jmp 0x405ed4
mov eax, dword [ebp]
test eax, eax
jne 0x405ee2
mov esi, 0x8007000e
jmp 0x405f0d
mov edx, dword [ebp - 0x18]
push esi
push edx
push esi
push eax
call fcn.00401bf0
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x41c]
add esp, 0x10
mov byte [eax + esi], 0
mov edx, dword [ebp]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004047d0
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x405f24
lea ecx, [ebp]
call fcn.00402750
test edi, edi
je 0x405f37
push edi
mov edi, dword [edi]
call fcn.0043bf9a
add esp, 4
test edi, edi
jne 0x405f28
mov eax, esi
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0043b8c7
lea esp, [ebp + 0x408]
pop ebp
ret 0x10