Function at 0x40ca70
Capabilities:
Extract resource via kernel32 functions
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e835
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5e6000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00423003
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push dword [edi + 0x20]
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
call fcn.0042ed64
push 0x5c09b4
push 0xcf
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40cb59
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40cb59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 2
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40cb59
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x40cb59
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push ebx
call fcn.0055ff10
add esp, 0xc
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40cb4b
push dword [ebp - 0x34]
lea ecx, [edi + 0x9b8]
call fcn.00408140
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 6
push dword [edi + 0x9c8]
mov ecx, edi
push dword [edi + 0x9c4]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0
call fcn.00430468
sub esp, 8
lea esi, [edi + 0xa8]
mov ecx, esi
push 0xca
call fcn.0040bba0
mov eax, dword [esi + 0x98]
mov ecx, esi
push 1
push dword [esi + 0x9c]
sar eax, 2
push eax
push 0xb4
push 0x4b
call fcn.004301c4
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push dword [esi + 0x20]
call ebx
lea ecx, [esi + 0xd0]
test ecx, ecx
je 0x40cbca
cmp dword [ecx + 0x20], 0
jne 0x40cbeb
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0x164]
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x401
push dword [esi + 0xf0]
call eax
push 0
push 0
push 0x40d
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x40cc2f
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [esi + 0x20]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea eax, [ebp - 0x20]
push eax
push 0x5c4428
push esi
lea ecx, [esi + 0xd0]
call fcn.00432e8b
push 1
push esi
push 0x5c4428
lea ecx, [esi + 0xd0]
call fcn.004337b4
sub esp, 8
lea esi, [edi + 0x218]
mov ecx, esi
push 0xcb
call fcn.0040bba0
mov eax, dword [esi + 0x98]
mov ecx, esi
push 1
push dword [esi + 0x9c]
sar eax, 2
push eax
push 0xb4
push 0xa5
call fcn.004301c4
push 1
push 0
push dword [esi + 0x20]
call ebx
lea ecx, [esi + 0xd0]
test ecx, ecx
je 0x40cc93
cmp dword [ecx + 0x20], 0
jne 0x40ccb4
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0x164]
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x401
push dword [esi + 0xf0]
call eax
push 0
push 0
push 0x40d
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x40ccf8
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [esi + 0x20]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea eax, [ebp - 0x20]
push eax
push 0x5c443c
push esi
lea ecx, [esi + 0xd0]
call fcn.00432e8b
push 1
push esi
push 0x5c443c
lea ecx, [esi + 0xd0]
call fcn.004337b4
sub esp, 8
lea esi, [edi + 0x388]
mov ecx, esi
push 0xcc
call fcn.0040bba0
mov eax, dword [esi + 0x98]
mov ecx, esi
push 1
push dword [esi + 0x9c]
sar eax, 2
push eax
push 0x80
push pe_nt_image_headers32
call fcn.004301c4
push 1
push 0
push dword [esi + 0x20]
call ebx
lea ecx, [esi + 0xd0]
test ecx, ecx
je 0x40cd5c
cmp dword [ecx + 0x20], 0
jne 0x40cd7c
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0x164]
push 0
push 1
push 0x401
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x40d
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x40cdc0
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [esi + 0x20]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea eax, [ebp - 0x20]
push eax
push 0x5c4450
push esi
lea ecx, [esi + 0xd0]
call fcn.00432e8b
push 1
push esi
push 0x5c4450
lea ecx, [esi + 0xd0]
call fcn.004337b4
push 1
push 0
push dword [edi + 0x938]
lea esi, [edi + 0x918]
mov dword [edi + 0x6e0], 0x78fa
mov dword [edi + 0x6e8], 0x54a8
mov dword [edi + 0x6e4], 0x54a8
mov dword [edi + 0x790], 0x78fa
mov dword [edi + 0x798], 0x54a8
mov dword [edi + 0x794], 0x54a8
mov dword [edi + 0x584], 0x78fa
mov dword [edi + 0x58c], 0x54a8
mov dword [edi + 0x588], 0x54a8
mov dword [edi + 0x8f0], 0x78fa
mov dword [edi + 0x8f8], 0x54a8
mov dword [edi + 0x8f4], 0x54a8
mov dword [edi + 0x840], 0x78fa
mov dword [edi + 0x848], 0x54a8
mov dword [edi + 0x844], 0x54a8
mov dword [edi + 0x634], 0x78fa
mov dword [edi + 0x63c], 0x54a8
mov dword [edi + 0x638], 0x54a8
mov dword [ebp - 0x40], esi
mov dword [edi + 0x9b4], 0x4b96
call ebx
push 1
push 0x13
push 0xef
push 0x84
push 0x1a
mov ecx, esi
call fcn.004301c4
call fcn.0041f881
mov ecx, eax
test ecx, ecx
je 0x40d0af
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
push str..config.ini
push 0
push str.Represent
push str.Client
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 1
push 0
cmp eax, 2
jne 0x40cf1f
push dword [edi + 0x678]
mov dword [edi + 0x6d8], 1
call ebx
push 0
lea ecx, [edi + 0x4f8]
call fcn.0042f956
jmp 0x40cf31
push dword [edi + 0x728]
mov dword [edi + 0x788], 1
call ebx
push str..config.ini
push 0
push str.FullScreen
push str.Client
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 1
push 0
test eax, eax
je 0x40cf62
push dword [edi + 0x888]
mov dword [edi + 0x8e8], 1
jmp 0x40cf72
push dword [edi + 0x7d8]
mov dword [edi + 0x838], 1
call ebx
push str..config.ini
push 0
push str.DynamicLight
push str.Client
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x40cfa5
push 1
push 0
push dword [edi + 0x518]
mov dword [edi + 0x57c], 1
call ebx
push str..config.ini
push 0
push str.CanOpenUrlWhenExit
push str.Client
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x40cfd6
push 1
push 0
push dword [edi + 0x5c8]
mov dword [edi + 0x62c], 1
call ebx
push str.CapPath
push str.Client
mov edx, str..config.ini
lea ecx, [ebp - 0x38]
call fcn.0040f2e0
add esp, 8
mov byte [ebp - 4], 1
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
or edi, 0xffffffff
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x40d04b
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x40d03c
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x40d03c
push edx
call fcn.00402880
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40d034
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
jmp 0x40d04b
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00402c30
mov esi, dword [ebp - 0x34]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d069
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x40]
push esi
call fcn.004304c5
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40d08e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055cc1b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402be0
int3