Function at 0x40d820
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x626fe3
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0xcc], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], ecx
lea ecx, [ebp - 0x6c]
call fcn.005dc060
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
push 0x63b668
push str.CONFIGURE
mov eax, dword [0x6b42cc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x40d8ba
mov dword [ebp - 0x124], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0040e2c0
mov eax, dword [ebp - 0x124]
jmp 0x40e0e3
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [0x6b42cc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [0x6b42cc]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40d929
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x128], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0040e2c0
mov eax, dword [ebp - 0x128]
jmp 0x40e0e3
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.005b2e02
add esp, 4
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.005b5620
add esp, 0xc
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0xc4]
call fcn.005dc060
mov byte [ebp - 4], 1
push 1
push 0
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc4]
call fcn.005df5a0
push 0x63b684
lea ecx, [ebp - 0xc4]
call fcn.005db2e0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.005b467e
add esp, 4
cmp dword [ebp - 0x70], 0
jne 0x40d9f4
mov dword [ebp - 0x134], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc4]
call fcn.0040e2c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0040e2c0
mov eax, dword [ebp - 0x134]
jmp 0x40e0e3
push str.Root
mov ecx, dword [ebp - 0x70]
call fcn.005db2e0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40da3d
mov dword [ebp - 0x138], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc4]
call fcn.0040e2c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0040e2c0
mov eax, dword [ebp - 0x138]
jmp 0x40e0e3
push 0x63b698
mov ecx, dword [ebp - 0x10]
call fcn.005db2e0
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x40df92
push str.SoftName
mov ecx, dword [ebp - 0x78]
call fcn.005db2e0
push eax
lea edx, [ebp - 0x154]
push edx
call fcn.005092e0
add esp, 8
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x258]
push ecx
mov ecx, dword [ebp - 0x250]
add ecx, 0x394
call fcn.0040e550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x154]
call fcn.0040e530
mov ecx, dword [ebp - 0x250]
add ecx, 0x394
call fcn.0040e5d0
push eax
push str.ParseRes_SoftName__s_
call fcn.00412530
push eax
call fcn.0040d040
add esp, 0xc
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x158], esp
push 0x63b6d8
call fcn.0040e3a0
mov dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x260], edx
mov byte [ebp - 4], 3
push str.SoftThs
mov ecx, dword [ebp - 0x78]
call fcn.005db2e0
push eax
mov byte [ebp - 4], 1
call fcn.00509610
add esp, 0x20
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
jne 0x40dca2
push str.SoftFloder
mov ecx, dword [ebp - 0x78]
call fcn.005db2e0
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.005092e0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x104]
call fcn.0040ee50
test eax, eax
je 0x40dba9
push 0
lea ecx, [ebp - 0x104]
call fcn.0040e5d0
push eax
mov ecx, dword [ebp - 0x250]
add ecx, 0x258
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
jne 0x40dba9
push 0x63b6f4
mov ecx, dword [ebp - 0x78]
call fcn.005db440
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x104]
call fcn.0040e530
jmp 0x40da4d
mov ecx, dword [ebp - 0x250]
add ecx, 0x258
push ecx
lea ecx, [ebp - 0x120]
call fcn.0040e4f0
mov byte [ebp - 4], 5
push 0x63b6fc
mov ecx, dword [ebp - 0x78]
call fcn.005db2e0
push eax
lea edx, [ebp - 0x174]
push edx
call fcn.005092e0
add esp, 8
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x120]
call fcn.0040e590
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x174]
call fcn.0040e530
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x250]
add eax, 0x258
push eax
call fcn.00412640
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x40dc51
lea ecx, [ebp - 0x120]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dc84
push 0x63b708
mov ecx, dword [ebp - 0x78]
call fcn.005db440
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x120]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x104]
call fcn.0040e530
jmp 0x40da4d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x120]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x104]
call fcn.0040e530
push 0x63b710
mov ecx, dword [ebp - 0x78]
call fcn.005db2e0
push eax
lea edx, [ebp - 0x190]
push edx
call fcn.005092e0
add esp, 8
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x274]
push ecx
mov ecx, dword [ebp - 0x250]
add ecx, 0x3e8
call fcn.0040e550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x190]
call fcn.0040e530
push 0xffffffffffffffff
push str.SoftNum
mov ecx, dword [ebp - 0x78]
call fcn.005db2e0
push eax
call fcn.005091d0
add esp, 8
mov edx, dword [ebp - 0x250]
mov dword [edx + 0x390], eax
push str.IniFileName
mov ecx, dword [ebp - 0x78]
call fcn.005db2e0
push eax
lea eax, [ebp - 0x1ac]
push eax
call fcn.005092e0
add esp, 8
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x27c], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x27c]
push edx
mov ecx, dword [ebp - 0x250]
add ecx, 0x3cc
call fcn.0040e550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1ac]
call fcn.0040e530
push str.Domain
mov ecx, dword [ebp - 0x78]
call fcn.005db2e0
push eax
lea eax, [ebp - 0x1c8]
push eax
call fcn.005092e0
add esp, 8
mov dword [ebp - 0x280], eax
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x284], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x284]
push edx
mov ecx, dword [ebp - 0x250]
add ecx, 0x3b0
call fcn.0040e550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c8]
call fcn.0040e530
push str.CfgUrl
mov ecx, dword [ebp - 0x78]
call fcn.005db2e0
push eax
lea eax, [ebp - 0x1e4]
push eax
call fcn.005092e0
add esp, 8
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x28c]
push edx
mov ecx, dword [ebp - 0x250]
add ecx, 0x404
call fcn.0040e550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1e4]
call fcn.0040e530
push str.TJUrl
mov ecx, dword [ebp - 0x78]
call fcn.005db2e0
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.005092e0
add esp, 8
mov dword [ebp - 0x290], eax
mov ecx, dword [ebp - 0x290]
mov dword [ebp - 0x294], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x294]
push edx
mov ecx, dword [ebp - 0x250]
add ecx, 0x458
call fcn.0040e550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x200]
call fcn.0040e530
push str.CidUrl
mov ecx, dword [ebp - 0x78]
call fcn.005db2e0
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.005092e0
add esp, 8
mov dword [ebp - 0x298], eax
mov ecx, dword [ebp - 0x298]
mov dword [ebp - 0x29c], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x29c]
push edx
mov ecx, dword [ebp - 0x250]
add ecx, 0x420
call fcn.0040e550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.0040e530
push 0x63b74c
mov ecx, dword [ebp - 0x78]
call fcn.005db2e0
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.005092e0
add esp, 8
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xe8]
call fcn.0040ee50
test eax, eax
jbe 0x40df7c
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x220], esp
lea edx, [ebp - 0xe8]
push edx
call fcn.0040e4f0
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 4], 0xe
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x224], esp
push 0x63b750
call fcn.0040e4b0
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2ac], ecx
mov byte [ebp - 4], 0xf
call fcn.00412530
mov byte [ebp - 4], 0xd
mov ecx, eax
call fcn.0040d1e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.0040e530
jmp 0x40df92
push 0
push 0x63b758
mov ecx, dword [ebp - 0x250]
add ecx, 0x404
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
jne 0x40dfe5
mov dword [ebp - 0x228], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc4]
call fcn.0040e2c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0040e2c0
mov eax, dword [ebp - 0x228]
jmp 0x40e0e3
mov edx, dword [ebp - 0x250]
add edx, 0x4c8
push edx
mov eax, dword [ebp - 0x250]
add eax, 0x404
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.004125b0
add esp, 0xc
mov dword [ebp - 0x2b0], eax
mov edx, dword [ebp - 0x2b0]
mov dword [ebp - 0x2b4], edx
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x2b4]
push eax
mov ecx, dword [ebp - 0x250]
add ecx, 0x404
call fcn.0040e550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.0040e530
push 0
push str.wp.dat
mov ecx, dword [ebp - 0x250]
add ecx, 0x4c8
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
je 0x40e0a7
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x248], esp
push 0x63b774
call fcn.0040e4b0
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], ecx
mov byte [ebp - 4], 0x11
call fcn.00412530
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.0040d2e0
mov edx, dword [ebp - 0x250]
xor eax, eax
cmp dword [edx + 0x390], 0
setne al
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc4]
call fcn.0040e2c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0040e2c0
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0xcc]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret