Function at 0x411600
Capabilities:
Check if file exists
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42e805
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x43b050]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b050]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
add esi, 0x20
mov ebx, 8
cmp dword [esi + 0x18], ebx
jb 0x411653
mov eax, dword [esi + 4]
jmp 0x411656
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41170e
cmp dword [esi + 0x18], ebx
jb 0x41166f
mov eax, dword [esi + 4]
jmp 0x411672
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41170e
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ecx, esi
lea edi, [esp + 0x18]
mov dword [esp + 0x128], ebp
call fcn.00418200
test eax, eax
jne 0x4116d6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4116b8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [esp + 0x18], edi
push 0x64
call ebx
inc ebp
cmp ebp, 5
jge 0x411703
mov ecx, esi
lea edi, [esp + 0x18]
call fcn.00418200
test eax, eax
je 0x4116a3
mov ebx, 8
push 0xfffe
call fcn.0041f855
add esp, 4
push 0xfffe
mov edi, eax
push 0
push edi
mov dword [esp + 0x4c], edi
call fcn.00421960
add esp, 0xc
cmp dword [esi + 0x18], ebx
jb 0x411738
mov esi, dword [esi + 4]
jmp 0x41173b
test edi, edi
je 0x41170e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041f86b
add esp, 0x118
ret
add esi, 4
push esi
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp word [edi], 0
mov dword [esp + 0x20], edi
je 0x411c51
lea eax, [esp + 0x4c]
push eax
call fcn.004136d0
push 0x2000
mov byte [esp + 0x12c], 1
call fcn.0041f855
add esp, 4
push 0x2000
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x54], ebp
call fcn.00421960
mov eax, dword [esp + 0x28]
add eax, 0x20
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x41179d
mov eax, dword [eax + 4]
jmp 0x4117a0
add eax, 4
mov ecx, dword [esp + 0x20]
push eax
push 0x1000
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp word [ebp], 0
je 0x411ab3
xor edx, edx
mov eax, ebp
mov word [esp + 0x94], dx
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4117e2
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x98]
call fcn.00404e10
push 0x436938
mov ebx, 1
xor eax, eax
lea edx, [esp + 0x94]
mov byte [esp + 0x12c], 2
call fcn.004132d0
mov edi, eax
cmp edi, 0xffffffff
je 0x411a00
lea eax, [esp + 0x90]
push eax
mov ecx, edi
xor edx, edx
lea esi, [esp + 0xb0]
call fcn.00412d30
lea ecx, [esp + 0x90]
push ecx
lea edx, [edi + 1]
or ecx, 0xffffffff
lea esi, [esp + 0xcc]
mov byte [esp + 0x12c], 3
call fcn.00412d30
mov byte [esp + 0x128], 4
cmp dword [esp + 0xdc], 0x20
je 0x411912
mov ebx, 8
cmp dword [esp + 0xe0], ebx
jb 0x411898
mov edx, dword [esp + 0xcc]
push edx
call fcn.0041f860
add esp, 4
xor esi, esi
xor eax, eax
mov edi, 7
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], esi
mov word [esp + 0xcc], ax
cmp dword [esp + 0xc4], ebx
jb 0x4118d0
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0041f860
add esp, 4
xor edx, edx
mov byte [esp + 0x128], 1
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], esi
mov word [esp + 0xb0], dx
cmp dword [esp + 0xa8], ebx
jb 0x411a30
mov eax, dword [esp + 0x94]
push eax
call fcn.0041f860
add esp, 4
jmp 0x411a30
lea ecx, [esp + 0xc8]
lea edi, [esp + 0x74]
call fcn.00417ab0
mov esi, eax
lea ecx, [esp + 0xac]
lea edi, [esp + 0xe4]
mov byte [esp + 0x128], 5
call fcn.00417ab0
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x12c], 6
call fcn.00412ef0
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push esi
mov ecx, eax
call fcn.00401450
mov esi, 0x10
cmp dword [esp + 0xfc], esi
jb 0x41197c
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.0041f860
add esp, 4
mov dword [esp + 0xfc], 0xf
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
cmp dword [esp + 0x8c], esi
jb 0x4119ab
mov edx, dword [esp + 0x78]
push edx
call fcn.0041f860
add esp, 4
mov esi, 8
cmp dword [esp + 0xe0], esi
jb 0x4119c9
mov eax, dword [esp + 0xcc]
push eax
call fcn.0041f860
add esp, 4
xor ecx, ecx
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], cx
cmp dword [esp + 0xc4], esi
jb 0x411a05
mov edx, dword [esp + 0xb0]
push edx
call fcn.0041f860
add esp, 4
jmp 0x411a05
mov esi, 8
mov byte [esp + 0x128], 1
cmp dword [esp + 0xa8], esi
jb 0x411a26
mov eax, dword [esp + 0x94]
push eax
call fcn.0041f860
add esp, 4
xor esi, esi
mov edi, 7
lea ebx, [esi + 8]
xor ecx, ecx
mov eax, ebp
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], esi
mov word [esp + 0xcc], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x411a50
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0xd0]
call fcn.00404e10
mov edx, dword [esp + 0xdc]
lea ebp, [ebp + edx*2 + 2]
cmp dword [esp + 0xe0], ebx
jb 0x411a91
mov eax, dword [esp + 0xcc]
push eax
call fcn.0041f860
add esp, 4
xor ecx, ecx
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], esi
mov word [esp + 0xcc], cx
cmp word [ebp], si
jne 0x4117bd
xor edx, edx
mov word [esp + 0xb0], dx
mov edx, dword [esp + 0x20]
mov ebx, 7
mov eax, edx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc0], 0
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411ae0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0xb4]
call fcn.00404e10
lea ecx, [esp + 0xac]
lea edi, [esp + 0xe4]
mov byte [esp + 0x128], bl
call fcn.00417ab0
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov byte [esp + 0x128], 8
call fcn.00412d60
mov esi, eax
lea eax, [esp + 0x4c]
cmp esi, eax
je 0x411b56
mov eax, dword [esi + 0x18]
mov ecx, dword [esi]
mov edx, dword [eax]
push eax
push ecx
push edx
push ecx
lea ecx, [esp + 0x7c]
push ecx
mov eax, esi
call fcn.00413970
lea ebx, [esp + 0x4c]
mov eax, esi
call fcn.00413a50
cmp dword [esp + 0xfc], 0x10
jb 0x411b70
mov edx, dword [esp + 0xe8]
push edx
call fcn.0041f860
add esp, 4
xor ebx, ebx
mov ebp, 8
mov dword [esp + 0xfc], 0xf
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
cmp dword [esp + 0xc4], ebp
jb 0x411ba9
mov eax, dword [esp + 0xb0]
push eax
call fcn.0041f860
add esp, 4
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0042034b
add esp, 4
lea esi, [esp + 0x4c]
mov byte [esp + 0x128], 9
call fcn.00413d00
mov byte [esp + 0x128], bl
mov edx, dword [esp + 0x4c]
push edx
call fcn.0041f860
mov esi, dword [esp + 0x24]
add esp, 4
xor eax, eax
mov word [esp + 0x28], ax
mov edi, 7
mov eax, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
lea edx, [eax + 2]
jmp 0x411c00
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411c00
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x2c]
call fcn.00404e10
mov ecx, dword [esp + 0x38]
lea esi, [esi + ecx*2 + 2]
mov dword [esp + 0x20], esi
cmp dword [esp + 0x3c], ebp
jb 0x411c39
mov edx, dword [esp + 0x28]
push edx
call fcn.0041f860
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], ax
cmp word [esi], bx
jne 0x411756
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x411c66
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0042034b
add esp, 4
push esi
push 0x43682e
lea ecx, [esp + 0x108]
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], esi
mov byte [esp + 0x10c], 0
call fcn.004015d0
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x128], 0xa
mov eax, dword [edi + 0x18]
mov ebp, dword [edi]
mov ebx, dword [eax]
mov dword [esp + 0x40], ebp
mov esi, dword [edi + 0x18]
mov eax, dword [edi]
test ebp, ebp
je 0x411cc3
cmp ebp, eax
je 0x411cc8
call fcn.004204b3
cmp ebx, esi
je 0x411e91
test ebp, ebp
jne 0x411d5a
call fcn.004204b3
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x411ce9
call fcn.004204b3
mov edx, dword [ebx + 0x40]
mov edi, dword [edx]
mov ebp, dword [ebx + 0x28]
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x411d5f
call fcn.004204b3
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x411d0a
call fcn.004204b3
mov esi, dword [ebx + 0x40]
mov eax, dword [ebx + 0x28]
test ebp, ebp
je 0x411d18
cmp ebp, eax
je 0x411d1d
call fcn.004204b3
cmp edi, esi
je 0x411e17
test ebp, ebp
jne 0x411d63
call fcn.004204b3
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x411d3a
call fcn.004204b3
mov esi, dword [edi + 0x20]
mov eax, esi
cmp eax, esi
jae 0x411d43
mov eax, esi
cmp esi, 8
jb 0x411d4f
mov eax, 8
cmp dword [edi + 0x24], 0x10
jb 0x411d68
mov edx, dword [edi + 0x10]
jmp 0x411d6b
mov eax, dword [ebp]
jmp 0x411cdf
mov eax, dword [eax]
jmp 0x411d00
mov eax, dword [ebp]
jmp 0x411d30
lea edx, [edi + 0x10]
mov ecx, str.config15
call fcn.004018a0
test eax, eax
jne 0x411d88
cmp esi, 8
jb 0x411d88
cmp esi, 8
setne al
test eax, eax
je 0x411db2
test ebp, ebp
jne 0x411dcb
call fcn.004204b3
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x411d9d
call fcn.004204b3
push 0
lea eax, [edi + 0x28]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x108]
call fcn.0040e310
test ebp, ebp
jne 0x411dbb
call fcn.004204b3
cmp byte [edi + 0x45], 0
je 0x411dd0
call fcn.004204b3
jmp 0x411cf1
mov eax, dword [ebp]
jmp 0x411d93
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x45], 0
jne 0x411df2
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
jne 0x411deb
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
je 0x411de1
mov edi, ecx
jmp 0x411cf1
mov eax, dword [edi + 4]
cmp byte [eax + 0x45], 0
jne 0x411e10
jmp 0x411e00
cmp edi, dword [eax + 8]
jne 0x411e10
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x411e00
mov edi, eax
jmp 0x411cf1
cmp dword [esp + 0x40], 0
jne 0x411e23
call fcn.004204b3
cmp byte [ebx + 0x49], 0
je 0x411e3b
call fcn.004204b3
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
jmp 0x411cb6
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x49], 0
jne 0x411e69
mov eax, dword [ecx]
cmp byte [eax + 0x49], 0
jne 0x411e5a
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x49], 0
je 0x411e50
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ebx, ecx
jmp 0x411cb6
mov eax, dword [ebx + 4]
cmp byte [eax + 0x49], 0
jne 0x411e82
cmp ebx, dword [eax + 8]
jne 0x411e82
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x49], 0
je 0x411e72
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ebx, eax
jmp 0x411cb6
cmp dword [esp + 0x114], 0
je 0x4120ca
push 8
mov ebp, 0xf
xor esi, esi
push str.config15
lea ecx, [esp + 0x98]
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], esi
mov byte [esp + 0x9c], 0
call fcn.004015d0
mov byte [esp + 0x128], 0xb
push 7
push str.config4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
call fcn.004015d0
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0xe8]
push edx
lea eax, [esp + 0x2c]
mov ecx, edi
mov byte [esp + 0x130], 0xc
call fcn.00410e30
mov ebx, 0x10
cmp dword [esp + 0x3c], ebx
jb 0x411f2f
mov eax, dword [esp + 0x28]
push eax
call fcn.0041f860
add esp, 4
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], 0
mov byte [esp + 0x128], 0xf
cmp dword [esp + 0xa8], ebx
jb 0x411f5d
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0041f860
add esp, 4
lea edx, [esp + 0xac]
push edx
lea ecx, [esp + 0x104]
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], esi
mov byte [esp + 0x98], 0
call fcn.00412a00
mov byte [esp + 0x128], bl
cmp dword [esp + 0xf8], esi
jne 0x412047
push 8
push str.config15
lea ecx, [esp + 0x98]
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], esi
mov byte [esp + 0x9c], 0
call fcn.004015d0
mov byte [esp + 0x128], 0x11
push 7
push str.config4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
call fcn.004015d0
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x2c]
mov edx, edi
mov byte [esp + 0x130], 0x12
call fcn.00411080
cmp dword [esp + 0x3c], ebx
jb 0x41201f
mov edx, dword [esp + 0x28]
push edx
call fcn.0041f860
add esp, 4
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], 0
cmp dword [esp + 0xa8], ebx
jb 0x412080
mov eax, dword [esp + 0x94]
push eax
call fcn.0041f860
add esp, 4
jmp 0x412080
lea eax, [esp + 0xac]
lea edx, [esp + 0xe4]
call fcn.0040f060
test al, al
jne 0x412080
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx + 4]
push edx
mov ecx, edi
call fcn.00413650
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], esi
mov dword [eax], eax
mov eax, dword [edi + 0x18]
mov dword [eax + 8], eax
cmp dword [esp + 0xc4], ebx
jb 0x412099
mov eax, dword [esp + 0xb0]
push eax
call fcn.0041f860
add esp, 4
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc0], esi
mov byte [esp + 0xb0], 0
cmp dword [esp + 0xfc], ebx
jb 0x4120cf
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.0041f860
add esp, 4
jmp 0x4120cf
mov ebx, 0x10
cmp dword [esp + 0x118], ebx
jb 0x4120e8
mov edx, dword [esp + 0x104]
push edx
call fcn.0041f860
add esp, 4
cmp dword [esp + 0x18], 0
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], 0
mov byte [esp + 0x104], 0
je 0x412118
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x411710