Function at 0x40d480
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e690d
mov eax, dword fs:[0]
push eax
sub esp, 0xa88
mov eax, dword [0x524250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xa84], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa94], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0xa88], edi
mov dword [ebp - 0xa80], 0
call fcn.00404e60
mov ecx, eax
test ecx, ecx
je 0x40dc88
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
cmp dword [esi + 0xc], 0
push 0x208
mov dword [ebp - 4], 0
mov dword [ebp - 0xa80], 1
push 0
jne 0x40d6ac
lea eax, [ebp - 0x218]
push eax
call fcn.00490690
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00490690
add esp, 0x18
push dword [esi + 0x10]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0xa7c], esi
test esi, esi
je 0x40d5de
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00490690
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp - 0xa7c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40d5de
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
lea edx, [ebp - 0x218]
mov eax, edx
mov esi, 0x208
sub edi, eax
nop
lea ecx, [esi + 0x7ffffdf6]
test ecx, ecx
je 0x40d5ce
movzx eax, word [edi + edx]
test ax, ax
je 0x40d5ce
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x40d5b0
mov edi, dword [ebp - 0xa88]
lea eax, [edx - 2]
test esi, esi
cmovne eax, edx
jmp 0x40d618
lea ecx, [ebp - 0x218]
mov esi, 0x4f6110
mov eax, ecx
mov edx, 0x208
sub esi, eax
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x40d610
movzx eax, word [esi + ecx]
test ax, ax
je 0x40d610
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40d5f2
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0xa90]
push eax
call fcn.004ad51f
lea eax, [ebp - 0xa90]
push eax
lea eax, [ebp - 0xa74]
push eax
call fcn.004ad36d
push dword [ebp - 0xa74]
mov eax, dword [ebp - 0xa64]
push dword [ebp - 0xa70]
inc eax
push dword [ebp - 0xa6c]
push dword [ebp - 0xa68]
push eax
mov eax, dword [ebp - 0xa60]
add eax, 0x76c
push eax
push str._d__02d__02d__02d__02d__02d
lea eax, [ebp - 0x830]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea eax, [ebp - 0x830]
push eax
mov eax, dword [ebp - 0xa84]
lea ecx, [ebp - 0x218]
push dword [eax + 0x10]
push ecx
push dword [eax + 4]
push str._s_s__d__s.dmp
push edi
call fcn.0040d1f0
add esp, 0x48
jmp 0x40dc69
lea eax, [ebp - 0x420]
push eax
call fcn.00490690
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00490690
add esp, 0x18
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0044cdf0
mov ecx, dword [0x526d34]
test ecx, ecx
jne 0x40d74b
push 0x5230f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x526d34], 0
jne 0x40d73a
push 8
call fcn.0045524a
mov esi, eax
add esp, 4
mov dword [ebp - 0xa7c], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x40d723
mov ecx, esi
call fcn.00454230
jmp 0x40d725
xor esi, esi
mov byte [ebp - 4], 0
lea eax, [ebp - 0xa7c]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x526d34], esi
push 0x5230f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x526d34]
mov eax, dword [ecx]
lea edx, [ebp - 0xa68]
push edx
mov eax, dword [eax + 0x10]
call eax
mov esi, eax
mov ecx, 3
mov dword [ebp - 4], 2
mov dword [ebp - 0xa7c], ecx
mov dword [ebp - 0xa80], ecx
mov ecx, dword [str.entludashi]
mov edx, ecx
lea edi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40d780
sub edx, edi
mov edi, esi
sar edx, 1
cmp dword [esi + 0x14], 8
jb 0x40d799
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
cmp esi, edx
jne 0x40d7cd
test esi, esi
je 0x40d897
sub edi, ecx
nop word [eax + eax]
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40d7cd
add ecx, 2
sub esi, 1
jne 0x40d7b0
mov byte [ebp - 0xa75], 1
jmp 0x40d8a8
mov ecx, dword [0x526d34]
test ecx, ecx
jne 0x40d839
push 0x5230f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x526d34], 0
jne 0x40d828
push 8
call fcn.0045524a
mov esi, eax
add esp, 4
mov dword [ebp - 0xa7c], esi
mov dword [ebp - 4], 3
test esi, esi
je 0x40d811
mov ecx, esi
call fcn.00454230
jmp 0x40d813
xor esi, esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0xa7c]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x526d34], esi
push 0x5230f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x526d34]
mov eax, dword [ecx]
lea edx, [ebp - 0xa50]
push edx
mov eax, dword [eax + 0x10]
call eax
mov ecx, 7
mov esi, eax
mov dword [ebp - 0xa7c], ecx
mov ecx, dword [str.ludashicata]
mov edx, ecx
lea edi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40d860
sub edx, edi
mov edi, esi
sar edx, 1
cmp dword [esi + 0x14], 8
jb 0x40d879
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
cmp esi, edx
jne 0x40d8a0
test esi, esi
je 0x40d897
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40d8a0
add ecx, 2
sub esi, 1
jne 0x40d886
mov byte [ebp - 0xa75], 1
jmp 0x40d8a8
xor al, al
mov byte [ebp - 0xa75], al
mov eax, dword [ebp - 0xa7c]
test al, 4
je 0x40d91e
mov edx, dword [ebp - 0xa3c]
and eax, 0xfffffffb
mov dword [ebp - 0xa7c], eax
cmp edx, 8
jb 0x40d901
mov ecx, dword [ebp - 0xa50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d8f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc92
push edx
push ecx
call fcn.0045527a
mov eax, dword [ebp - 0xa7c]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 7
mov word [ebp - 0xa50], cx
mov edx, dword [ebp - 0xa54]
and eax, 0xfffffffd
mov dword [ebp - 4], 0
mov dword [ebp - 0xa80], eax
cmp edx, 8
jb 0x40d96e
mov ecx, dword [ebp - 0xa68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d964
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc97
push edx
push ecx
call fcn.0045527a
add esp, 8
mov cl, byte [ebp - 0xa75]
test cl, cl
je 0x40dbff
mov ecx, dword [0x526d34]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ecx, ecx
jne 0x40d9ea
push 0x5230f8
call edi
cmp dword [0x526d34], 0
jne 0x40d9d9
push 8
call fcn.0045524a
mov esi, eax
add esp, 4
mov dword [ebp - 0xa7c], esi
mov dword [ebp - 4], 4
test esi, esi
je 0x40d9c2
mov ecx, esi
call fcn.00454230
jmp 0x40d9c4
xor esi, esi
mov byte [ebp - 4], 0
lea eax, [ebp - 0xa7c]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x526d34], esi
push 0x5230f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x526d34]
mov eax, dword [ecx]
lea edx, [ebp - 0xa50]
push 0
push edx
mov eax, dword [eax + 0x34]
call eax
mov esi, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 5
jb 0x40da0b
mov esi, dword [esi]
call fcn.00404e60
mov ecx, eax
test ecx, ecx
je 0x40dc9c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa7c], eax
mov byte [ebp - 4], 6
test esi, esi
je 0x40da61
test esi, 0xffff0000
jne 0x40da4b
movzx eax, si
lea ecx, [ebp - 0xa7c]
push eax
call fcn.0040e240
jmp 0x40da70
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40da50
sub ecx, edx
sar ecx, 1
jmp 0x40da63
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0xa7c]
call fcn.00406410
mov edx, dword [ebp - 0xa3c]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x40dab4
mov ecx, dword [ebp - 0xa50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40daaa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dca6
push edx
push ecx
call fcn.0045527a
add esp, 8
mov esi, dword [ebp - 0xa7c]
xor eax, eax
push esi
push 0x104
mov word [ebp - 0xa50], ax
lea eax, [ebp - 0x420]
push eax
push 0x4f5574
push str.client_token
push str.general
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 7
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [0x526d34]
test ecx, ecx
jne 0x40db5e
push 0x5230f8
call edi
cmp dword [0x526d34], 0
jne 0x40db4d
push 8
call fcn.0045524a
mov edi, eax
add esp, 4
mov dword [ebp - 0xa8c], edi
mov byte [ebp - 4], 9
test edi, edi
je 0x40db36
mov ecx, edi
call fcn.00454230
jmp 0x40db38
xor edi, edi
mov byte [ebp - 4], 8
lea eax, [ebp - 0xa8c]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x526d34], edi
push 0x5230f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x526d34]
mov eax, dword [ecx]
lea edx, [ebp - 0xa68]
push 0
push edx
mov eax, dword [eax + 0x6c]
call eax
sub esp, 0x18
mov ecx, esp
movups xmm0, xmmword [eax]
push 0x4f616c
push 0x104
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
lea eax, [ebp - 0xa38]
push eax
movq qword [ecx + 0x10], xmm0
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov edx, dword [ebp - 0xa54]
add esp, 0x24
cmp edx, 8
jb 0x40dbdd
mov ecx, dword [ebp - 0xa68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dbd3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dcab
push edx
push ecx
call fcn.0045527a
add esp, 8
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40dbf9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov cl, byte [ebp - 0xa75]
mov edi, dword [ebp - 0xa88]
xor esi, esi
push esi
test cl, cl
je 0x40dc33
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0xa84]
push dword [eax + 4]
push str._s_s__s__03d.dmp
push edi
call fcn.0040d1f0
add esp, 0x18
jmp 0x40dc51
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0xa84]
push dword [eax + 4]
push str._s_s__03d.dmp
push edi
call fcn.0040d1f0
add esp, 0x14
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40dc69
mov cl, byte [ebp - 0xa75]
inc esi
cmp esi, 0xa
jle 0x40dc07
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045568a
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404b50
call fcn.0049a816
call fcn.0049a816
push 0x80004005
call fcn.00404b50
call fcn.0049a816
call fcn.0049a816
int3