Function at 0x401650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5230cf
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.00403400
push ecx
lea edx, [ebp - 0x44]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401c10
sub esp, 0x14
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x4016bc
mov eax, dword [ecx]
jmp 0x4016be
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x2c]
push edx
push eax
call fcn.00402620
call fcn.00402f10
add esp, 0x18
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x401765
push 0x53eb34
push str.Language_xml
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40181f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x40181f
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40181f
cmp esi, 0x100000
ja 0x40181f
push esi
call fcn.004d8036
add esp, 4
mov dword [edi + 0x1c], eax
test eax, eax
je 0x40181f
push esi
push 0
push eax
call fcn.004e0850
add esp, 0xc
push esi
push ebx
push dword [edi + 0x1c]
call fcn.004e0df0
add esp, 0xc
push 0x48
call fcn.004d7fcd
mov esi, eax
add esp, 4
mov dword [ebp - 0x48], esi
push 0x48
push 0
push esi
mov byte [ebp - 4], 2
call fcn.004e0850
add esp, 0xc
mov ecx, esi
call fcn.004d98c0
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [edi + 0x24], ecx
test ecx, ecx
jne 0x4017b7
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x40181f
push eax
call fcn.004d800e
add esp, 4
mov dword [edi + 0x1c], 0
xor esi, esi
jmp 0x401837
mov eax, dword [ecx]
push 1
push 0
push dword [edi + 0x1c]
call dword [eax + 8]
mov ecx, dword [edi + 0x24]
push str.TheConfigure
call fcn.004da670
mov dword [edi + 0x20], eax
test eax, eax
jne 0x401823
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4017ee
push eax
call fcn.004d800e
add esp, 4
mov dword [edi + 0x1c], 0
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x40181f
cmp dword [ecx - 4], 0
lea eax, [ecx - 4]
je 0x40180f
mov eax, dword [ecx]
push 3
call dword [eax]
mov dword [edi + 0x24], 0
xor esi, esi
jmp 0x401837
push eax
call fcn.004d800e
add esp, 4
mov dword [edi + 0x24], 0
xor esi, esi
jmp 0x401837
push 5
push 0x53eb68
lea ecx, [edi + 4]
call fcn.004023d0
mov esi, 1
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40184c
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00402b90
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp ecx, 8
jb 0x401875
inc ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.00402b90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret 4