Function at 0x4030a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57387f
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x460
mov eax, dword [0x5e3c30]
xor eax, ebp
mov dword [ebp - 0x40], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x460], ecx
call fcn.004018b7
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x3c]
call fcn.0041d433
and dword [ebp - 4], 0
push dword [ebp - 0x460]
lea ecx, [ebp - 0x28]
call fcn.00403bcf
lea ecx, [ebp - 0x448]
call fcn.0041d433
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403127
and dword [ebp - 0x464], 0
jmp 0x4031c1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x38], eax
push 2
push dword [ebp - 0x38]
lea eax, [ebp - 0x38]
push eax
call fcn.0040176f
add esp, 0xc
test eax, eax
jge 0x403152
and dword [ebp - 0x468], 0
jmp 0x4031b5
cmp dword [ebp - 0x38], 0x400
jg 0x40318a
push dword [ebp - 0x38]
call fcn.004017e8
pop ecx
movzx eax, al
test eax, eax
je 0x40318a
mov eax, dword [ebp - 0x38]
call fcn.00548d60
mov dword [ebp - 0x46c], esp
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x470], eax
jmp 0x40319b
push dword [ebp - 0x38]
lea ecx, [ebp - 0x3c]
call fcn.00401d61
mov dword [ebp - 0x470], eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x14]
push dword [ebp - 0x470]
call fcn.00401f5a
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x468]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x464]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x403200
mov dword [ebp - 0x458], 0x8007000e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.00406106
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401da7
mov eax, dword [ebp - 0x458]
jmp 0x403382
push 2
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x403226
call fcn.00401b04
mov dword [ebp - 0x450], eax
jmp 0x403346
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
jne 0x403254
call fcn.00401b04
mov dword [ebp - 0x450], eax
jmp 0x403346
push dword [ebp - 0x44c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x454], 0
jne 0x403282
call fcn.00401b04
mov dword [ebp - 0x450], eax
jmp 0x403346
push dword [ebp - 0x44c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
inc eax
cmp eax, dword [ebp - 0x2c]
jae 0x4032b5
mov dword [ebp - 0x450], 0x8007000e
jmp 0x403346
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
inc eax
push eax
lea ecx, [ebp - 0x448]
call fcn.004060c6
jmp 0x4032d8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x448]
call fcn.00408b0b
test eax, eax
jne 0x4032fa
mov dword [ebp - 0x450], 0x8007000e
jmp 0x403346
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x448]
call fcn.00408b0b
push eax
call fcn.004019e4
add esp, 0x10
lea ecx, [ebp - 0x448]
call fcn.00408b0b
mov ecx, dword [ebp - 0x2c]
mov byte [eax + ecx], 0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x448]
call fcn.00408b0b
push eax
lea ecx, [ebp - 0x28]
call fcn.0040496c
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x20], 0
je 0x403355
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x45c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.00406106
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401da7
mov eax, dword [ebp - 0x45c]
lea esp, [ebp - 0x480]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00543a33
leave
ret 0x10