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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f88dc
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x530010]
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
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x260], edi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x260], edi
push 0
push eax
mov dword [ebp - 0x284], 0
call fcn.004c6550
mov ecx, dword [0x530b60]
mov eax, bind
sub eax, ecx
add esp, 0xc
cmp eax, 0xb
jb 0x40b72e
cmp dword [0x530b64], 8
mov eax, 0x530b50
push 0xb
cmovae eax, dword [0x530b50]
push 0x518994
push ecx
push eax
push ecx
push dword [ebp - 0x264]
lea ecx, [ebp - 0x254]
call fcn.004065c0
mov ebx, 4
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x254]
cmp dword [ebp - 0x240], 8
cmovae eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b2b3
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5189ac
push str.union
push str.setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b180
sub ecx, edx
sar ecx, 1
jne 0x40b1aa
push 0x5189ac
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004d3860
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x27c], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
lea edx, [ecx + 2]
mov word [ebp - 0x27c], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b1e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x27c]
call fcn.004014e0
lea edx, [ebp - 0x27c]
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.0046a620
mov edx, dword [ebp - 0x268]
cmp edx, 8
jb 0x40b253
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b249
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b733
push edx
push ecx
call fcn.00476a87
add esp, 8
xor eax, eax
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
mov edx, dword [ebp - 0x240]
cmp edx, 8
jb 0x40b684
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b67a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b733
jmp 0x40b67a
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
mov dword [ebp - 0x23c], 0
mov ecx, edx
mov dword [ebp - 0x22c], 0
xor eax, eax
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b310
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x23c]
call fcn.004014e0
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movq qword [ebp - 0x224], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x27c]
push 1
xor eax, eax
mov dword [ebp - 0x27c], 0
push 0x5180fc
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
call fcn.004014e0
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0x23c]
call fcn.0040add0
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x268]
cmp edx, 8
jb 0x40b3ff
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b3f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b733
push edx
push ecx
call fcn.00476a87
add esp, 8
mov ecx, dword [ebp - 0x220]
xor eax, eax
mov esi, dword [ebp - 0x224]
sub ecx, esi
mov dword [ebp - 0x280], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40b59a
xor edi, edi
mov dword [ebp - 0x260], edi
nop dword [eax]
nop dword [eax + eax]
cmp dword [esi + edi + 0x10], 3
lea eax, [esi + edi]
jbe 0x40b4e8
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
jb 0x40b474
mov eax, dword [eax]
push 3
push eax
lea ecx, [ebp - 0x27c]
call fcn.004014e0
mov edi, dword [ebp - 0x27c]
lea esi, [ebp - 0x27c]
or ebx, 0xa
mov dword [ebp - 0x25c], ebx
mov ebx, dword [ebp - 0x268]
cmp ebx, 8
cmovae esi, edi
cmp dword [ebp - 0x26c], 3
jne 0x40b4e0
mov ecx, 0x5189d0
mov edx, 3
sub esi, ecx
nop dword [eax + eax]
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x40b4e0
add ecx, 2
sub edx, 1
jne 0x40b4c0
mov esi, dword [ebp - 0x224]
mov byte [ebp - 0x255], 1
jmp 0x40b4fb
mov esi, dword [ebp - 0x224]
jmp 0x40b4f4
mov ebx, dword [ebp - 0x268]
mov edi, dword [ebp - 0x27c]
mov byte [ebp - 0x255], 0
mov eax, dword [ebp - 0x25c]
test al, 2
je 0x40b548
and eax, 0xfffffffd
mov dword [ebp - 0x25c], eax
cmp ebx, 8
jb 0x40b548
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40b538
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b733
push ecx
push edi
call fcn.00476a87
mov esi, dword [ebp - 0x224]
add esp, 8
cmp byte [ebp - 0x255], 0
jne 0x40b5c3
mov ecx, dword [ebp - 0x220]
mov eax, 0x2aaaaaab
mov ebx, dword [ebp - 0x280]
sub ecx, esi
mov edi, dword [ebp - 0x260]
inc ebx
imul ecx
add edi, 0x18
mov dword [ebp - 0x280], ebx
sar edx, 2
mov eax, edx
mov dword [ebp - 0x260], edi
shr eax, 0x1f
add eax, edx
cmp ebx, eax
mov ebx, dword [ebp - 0x25c]
jb 0x40b440
mov edi, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x220]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
mov ecx, edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
jb 0x40b6a2
lea edx, [esi + 0x30]
jmp 0x40b5d7
mov eax, dword [ebp - 0x280]
mov edi, dword [ebp - 0x264]
mov ecx, edi
lea eax, [eax + eax*2]
lea edx, [esi + eax*8]
call fcn.0046a620
lea ecx, [ebp - 0x224]
call fcn.004063d0
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x40b627
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b61d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b733
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebp - 0x240]
xor eax, eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
cmp edx, 8
jb 0x40b684
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b67a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b733
push edx
push ecx
call fcn.00476a87
add esp, 8
mov eax, edi
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.00476a44
mov esp, ebp
pop ebp
ret
push 3
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push 0x5189d8
mov byte [edi], 0
call fcn.004015f0
lea ecx, [ebp - 0x224]
call fcn.004063d0
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x40b70c
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b702
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b733
push edx
push ecx
call fcn.00476a87
add esp, 8
xor eax, eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
jmp 0x40b270
call fcn.00401410
call fcn.004ca66d
int3