Function at 0x406270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x427250]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.00405930
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.004096f0
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406780
lea ecx, [ebp - 0x438]
call fcn.004096f0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x4062ce
mov dword [ebp - 0x458], 0
jmp 0x406374
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x28], eax
push 2
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004057f0
add esp, 0xc
test eax, eax
jge 0x406300
mov dword [ebp - 0x45c], 0
jmp 0x406368
cmp dword [ebp - 0x28], 0x400
jg 0x406338
mov edx, dword [ebp - 0x28]
push edx
call fcn.00405850
add esp, 4
movzx eax, al
test eax, eax
je 0x406338
mov eax, dword [ebp - 0x28]
call fcn.00410b10
mov dword [ebp - 0x460], esp
mov ecx, dword [ebp - 0x460]
mov dword [ebp - 0x464], ecx
jmp 0x40634a
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00409370
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x464]
push eax
call fcn.00405e80
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x458], ecx
mov edx, dword [ebp - 0x458]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x4063ab
mov dword [ebp - 0x448], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.00409730
lea ecx, [ebp - 0x2c]
call fcn.004093e0
mov eax, dword [ebp - 0x448]
jmp 0x406535
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4063d2
call fcn.004059e0
mov dword [ebp - 0x440], eax
jmp 0x406500
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x406403
call fcn.004059e0
mov dword [ebp - 0x440], eax
jmp 0x406500
mov ecx, dword [ebp - 0x43c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
jne 0x406433
call fcn.004059e0
mov dword [ebp - 0x440], eax
jmp 0x406500
mov eax, dword [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, dword [ebp - 0x1c]
jae 0x406483
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.00409730
lea ecx, [ebp - 0x2c]
call fcn.004093e0
mov eax, dword [ebp - 0x44c]
jmp 0x406535
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
lea ecx, [ebp - 0x438]
call fcn.00409750
lea ecx, [ebp - 0x438]
call fcn.00407e00
test eax, eax
jne 0x4064b0
mov dword [ebp - 0x440], 0x8007000e
jmp 0x406500
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00407e00
push eax
call fcn.00406050
add esp, 0x10
lea ecx, [ebp - 0x438]
call fcn.00407e00
mov edx, dword [ebp - 0x1c]
mov byte [eax + edx], 0
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.00407e00
push eax
lea ecx, [ebp - 0x18]
call fcn.004067b0
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x10], 0
je 0x406510
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x440]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.00409730
lea ecx, [ebp - 0x2c]
call fcn.004093e0
mov eax, dword [ebp - 0x450]
lea esp, [ebp - 0x464]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0040d67a
mov esp, ebp
pop ebp
ret 0x10