Function at 0x42ad40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492c62
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], 0
cmp dword [ebp + 8], 0
jne 0x42ad8f
push 0x49aa3c
push 0xd2
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x40], eax
jmp 0x42ada4
push str.CONFIG
push 0xd3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x42adb1
xor eax, eax
jmp 0x42afb7
mov eax, dword [ebp - 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x42adcd
xor eax, eax
jmp 0x42afb7
mov ecx, dword [ebp - 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x42ade9
xor eax, eax
jmp 0x42afb7
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42ae03
xor eax, eax
jmp 0x42afb7
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
lea ecx, [ebp - 0xe8]
call fcn.00401c70
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 1
push 1
lea edx, [ebp - 0xe8]
push edx
lea ecx, [ebp - 0xcc]
call fcn.0042b1b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00401c50
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xcc]
push ecx
call fcn.0042dab0
add esp, 8
mov dword [ebp - 0xec], eax
mov edx, dword [ebp - 0xec]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xec]
add ecx, dword [eax + 4]
call fcn.0042f590
test eax, eax
je 0x42af7a
push 0x49aa5c
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040a070
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.00401d40
test eax, eax
jne 0x42aea2
jmp 0x42ae4c
push 0
push 0x3d
lea ecx, [ebp - 0x34]
call fcn.0042b020
mov dword [ebp - 0x38], eax
mov edx, dword [0x4b13f8]
cmp edx, dword [ebp - 0x38]
jne 0x42aec1
jmp 0x42af7a
mov eax, dword [ebp - 0x38]
push eax
push 0
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0042b040
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x134], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x134]
call fcn.00401ff0
push eax
call fcn.00474b5c
add esp, 4
mov dword [ebp - 0xf0], eax
mov eax, dword [0x4b13f8]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
push ecx
lea edx, [ebp - 0x128]
push edx
lea ecx, [ebp - 0x34]
call fcn.0042b040
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x13c]
push ecx
lea edx, [ebp - 0xf0]
push edx
mov ecx, 0x4c3378
call fcn.0042b090
mov ecx, eax
call fcn.00407700
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x128]
call fcn.00401ce0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10c]
call fcn.00401ce0
jmp 0x42ae4c
mov dword [ebp - 0x12c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00401ce0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xcc]
call fcn.0042aff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.00401ce0
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret