Function at 0x406d4c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x566180
call fcn.00524444
mov eax, 0x1070
call fcn.00524e70
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x107c]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], 1
call fcn.00404989
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x107c]
push eax
call fcn.0040773e
mov dword [ebp - 4], ebx
call fcn.0055c7c5
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x24], eax
xor eax, eax
cmp dword [ebp + 0xc], ebx
setne al
add eax, 0x2b9
mov dword [ebp - 0x2c], eax
push str.CFGFILES
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x407057
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x407057
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407055
test ebx, ebx
je 0x407055
push 0x400
lea ecx, [ebp - 0x78]
call fcn.0054b04e
mov dword [ebp - 0x78], 0x57aaf0
xor edi, edi
lea ecx, [ebp - 0x78]
push edi
push ebx
push esi
mov byte [ebp - 4], 1
call fcn.0054b0d6
mov eax, dword [0x61d784]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x78]
push eax
call fcn.004048f2
test eax, eax
je 0x40703d
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], edi
je 0x406e2f
cmp byte [eax], 0x2d
jne 0x406e2f
mov esi, 0x5bca30
lea ecx, [ebp - 0x10]
push esi
call fcn.0053af47
push esi
lea ecx, [ebp - 0x10]
call fcn.0053ae66
mov eax, dword [0x61d784]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov esi, 0x622c98
push eax
mov ecx, esi
push dword [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0053e2d9
test eax, eax
je 0x406e96
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
call fcn.0053ec88
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 8], edi
je 0x40702c
mov eax, dword [0x61d784]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
cmp dword [eax - 8], edi
jne 0x406ee3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push 0x622cb4
push eax
call fcn.0053ed7e
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.0053ec88
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0053eb4f
jmp 0x406efb
push eax
push ecx
call fcn.00524e9f
pop ecx
test eax, eax
pop ecx
jne 0x406efb
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0053ecd8
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], edi
je 0x407020
lea ecx, [ebp - 0x50]
call fcn.00540041
push edi
push 0x1001
push dword [ebp - 0x20]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.005400b6
test eax, eax
je 0x407014
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x78]
push eax
call fcn.004048f2
test eax, eax
je 0x407001
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x2d
je 0x406fc5
cmp dword [ebp + 0xc], 1
jne 0x406f94
push 0x7b
push eax
call fcn.0052540b
pop ecx
test eax, eax
pop ecx
je 0x406f94
push str.__t_n
lea ecx, [ebp - 0x10]
call fcn.0053ae66
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
push dword [ebp - 0x10]
call fcn.0053e2d9
test eax, eax
je 0x406f87
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
call fcn.0053ec88
push 0x5bca24
lea ecx, [ebp - 0x10]
call fcn.0053ef2b
lea eax, [ebp - 0x10]
push 0x5b85a0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0053ede4
push dword [eax]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
call fcn.00540229
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.0053eb4f
jmp 0x406f2c
lea ecx, [ebp - 0x50]
call fcn.005403be
lea ecx, [ebp - 0x50]
call fcn.005403e6
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.00540073
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0053eb4f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0053eb4f
jmp 0x406e43
lea ecx, [ebp - 0x50]
call fcn.005403be
lea ecx, [ebp - 0x50]
call fcn.005403e6
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.00540073
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0053eb4f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0053eb4f
jmp 0x406e2f
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0053eb4f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.0054b101
xor ebx, ebx
cmp dword [ebp - 0x28], ebx
je 0x4070eb
cmp dword [ebp + 8], ebx
je 0x4070eb
cmp dword [ebp - 0x14], ebx
jne 0x4070eb
cmp dword [ebp + 0x10], ebx
je 0x4070eb
mov eax, dword [ebp + 0xc]
sub eax, ebx
je 0x4070ad
dec eax
jne 0x4070e3
lea eax, [ebp - 0x38]
push 0xa03b
push eax
call fcn.00402f3e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.0053ec88
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0053eb4f
push 0x5bc9e0
jmp 0x4070db
lea eax, [ebp - 0x30]
push 0xa03b
push eax
call fcn.00402f3e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.0053ec88
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0053eb4f
push 0x5bc9e8
lea ecx, [ebp - 0x1c]
call fcn.0053ef2b
mov dword [ebp - 0x28], ebx
jmp 0x406daa
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x407105
cmp dword [ebp - 0x14], ebx
je 0x407101
cmp dword [ebp - 0x28], ebx
jne 0x407101
push 1
pop eax
jmp 0x407103
xor eax, eax
mov dword [ecx], eax
xor eax, eax
cmp dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x1c]
setne al
or dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.0053eb4f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret