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

Disassembly:
push 0xffffffffffffffff
push 0x43d395
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x449f6c]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449f6c]
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 0x413a63
mov eax, dword [esi + 4]
jmp 0x413a66
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413b1e
cmp dword [esi + 0x18], ebx
jb 0x413a7f
mov eax, dword [esi + 4]
jmp 0x413a82
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x413b1e
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ecx, esi
lea edi, [esp + 0x18]
mov dword [esp + 0x128], ebp
call fcn.0041acd0
test eax, eax
jne 0x413ae6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x18]
test edi, edi
je 0x413ac8
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 0x413b13
mov ecx, esi
lea edi, [esp + 0x18]
call fcn.0041acd0
test eax, eax
je 0x413ab3
mov ebx, 8
push 0xfffe
call fcn.0041f096
add esp, 4
push 0xfffe
mov edi, eax
push 0
push edi
mov dword [esp + 0x4c], edi
call fcn.00428a90
add esp, 0xc
cmp dword [esi + 0x18], ebx
jb 0x413b48
mov esi, dword [esi + 4]
jmp 0x413b4b
test edi, edi
je 0x413b1e
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.004239c1
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 0x414061
lea eax, [esp + 0x4c]
push eax
call fcn.00415a00
push 0x2000
mov byte [esp + 0x12c], 1
call fcn.0041f096
add esp, 4
push 0x2000
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x54], ebp
call fcn.00428a90
mov eax, dword [esp + 0x28]
add eax, 0x20
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x413bad
mov eax, dword [eax + 4]
jmp 0x413bb0
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 0x413ec3
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 0x413bf2
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x98]
call fcn.0040e9b0
push 0x4420ec
mov ebx, 1
xor eax, eax
lea edx, [esp + 0x94]
mov byte [esp + 0x12c], 2
call fcn.0040e150
mov edi, eax
cmp edi, 0xffffffff
je 0x413e10
lea eax, [esp + 0x90]
push eax
mov ecx, edi
xor edx, edx
lea esi, [esp + 0xb0]
call fcn.00415140
lea ecx, [esp + 0x90]
push ecx
lea edx, [edi + 1]
or ecx, 0xffffffff
lea esi, [esp + 0xcc]
mov byte [esp + 0x12c], 3
call fcn.00415140
mov byte [esp + 0x128], 4
cmp dword [esp + 0xdc], 0x20
je 0x413d22
mov ebx, 8
cmp dword [esp + 0xe0], ebx
jb 0x413ca8
mov edx, dword [esp + 0xcc]
push edx
call fcn.00423e76
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 0x413ce0
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.00423e76
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 0x413e40
mov eax, dword [esp + 0x94]
push eax
call fcn.00423e76
add esp, 4
jmp 0x413e40
lea ecx, [esp + 0xc8]
lea edi, [esp + 0x74]
call fcn.0041a570
mov esi, eax
lea ecx, [esp + 0xac]
lea edi, [esp + 0xe4]
mov byte [esp + 0x128], 5
call fcn.0041a570
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x12c], 6
call fcn.00415300
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push esi
mov ecx, eax
call fcn.0040f0a0
mov esi, 0x10
cmp dword [esp + 0xfc], esi
jb 0x413d8c
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.00423e76
add esp, 4
mov dword [esp + 0xfc], 0xf
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
cmp dword [esp + 0x8c], esi
jb 0x413dbb
mov edx, dword [esp + 0x78]
push edx
call fcn.00423e76
add esp, 4
mov esi, 8
cmp dword [esp + 0xe0], esi
jb 0x413dd9
mov eax, dword [esp + 0xcc]
push eax
call fcn.00423e76
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 0x413e15
mov edx, dword [esp + 0xb0]
push edx
call fcn.00423e76
add esp, 4
jmp 0x413e15
mov esi, 8
mov byte [esp + 0x128], 1
cmp dword [esp + 0xa8], esi
jb 0x413e36
mov eax, dword [esp + 0x94]
push eax
call fcn.00423e76
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 0x413e60
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0xd0]
call fcn.0040e9b0
mov edx, dword [esp + 0xdc]
lea ebp, [ebp + edx*2 + 2]
cmp dword [esp + 0xe0], ebx
jb 0x413ea1
mov eax, dword [esp + 0xcc]
push eax
call fcn.00423e76
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 0x413bcd
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 0x413ef0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0xb4]
call fcn.0040e9b0
lea ecx, [esp + 0xac]
lea edi, [esp + 0xe4]
mov byte [esp + 0x128], bl
call fcn.0041a570
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov byte [esp + 0x128], 8
call fcn.00415170
mov esi, eax
lea eax, [esp + 0x4c]
cmp esi, eax
je 0x413f66
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.00415ca0
lea ebx, [esp + 0x4c]
mov eax, esi
call fcn.00415d80
cmp dword [esp + 0xfc], 0x10
jb 0x413f80
mov edx, dword [esp + 0xe8]
push edx
call fcn.00423e76
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 0x413fb9
mov eax, dword [esp + 0xb0]
push eax
call fcn.00423e76
add esp, 4
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00424911
add esp, 4
lea esi, [esp + 0x4c]
mov byte [esp + 0x128], 9
call fcn.00416030
mov byte [esp + 0x128], bl
mov edx, dword [esp + 0x4c]
push edx
call fcn.00423e76
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 0x414010
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414010
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x2c]
call fcn.0040e9b0
mov ecx, dword [esp + 0x38]
lea esi, [esi + ecx*2 + 2]
mov dword [esp + 0x20], esi
cmp dword [esp + 0x3c], ebp
jb 0x414049
mov edx, dword [esp + 0x28]
push edx
call fcn.00423e76
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 0x413b66
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x414076
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00424911
add esp, 4
push esi
push 0x4427d2
lea ecx, [esp + 0x108]
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], esi
mov byte [esp + 0x10c], 0
call fcn.0040ec00
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 0x4140d3
cmp ebp, eax
je 0x4140d8
call fcn.004243a2
cmp ebx, esi
je 0x4142a1
test ebp, ebp
jne 0x41416a
call fcn.004243a2
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4140f9
call fcn.004243a2
mov edx, dword [ebx + 0x40]
mov edi, dword [edx]
mov ebp, dword [ebx + 0x28]
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x41416f
call fcn.004243a2
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x41411a
call fcn.004243a2
mov esi, dword [ebx + 0x40]
mov eax, dword [ebx + 0x28]
test ebp, ebp
je 0x414128
cmp ebp, eax
je 0x41412d
call fcn.004243a2
cmp edi, esi
je 0x414227
test ebp, ebp
jne 0x414173
call fcn.004243a2
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x41414a
call fcn.004243a2
mov esi, dword [edi + 0x20]
mov eax, esi
cmp eax, esi
jae 0x414153
mov eax, esi
cmp esi, 8
jb 0x41415f
mov eax, 8
cmp dword [edi + 0x24], 0x10
jb 0x414178
mov edx, dword [edi + 0x10]
jmp 0x41417b
mov eax, dword [ebp]
jmp 0x4140ef
mov eax, dword [eax]
jmp 0x414110
mov eax, dword [ebp]
jmp 0x414140
lea edx, [edi + 0x10]
mov ecx, str.config15
call fcn.0040fab0
test eax, eax
jne 0x414198
cmp esi, 8
jb 0x414198
cmp esi, 8
setne al
test eax, eax
je 0x4141c2
test ebp, ebp
jne 0x4141db
call fcn.004243a2
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4141ad
call fcn.004243a2
push 0
lea eax, [edi + 0x28]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x108]
call fcn.004084a0
test ebp, ebp
jne 0x4141cb
call fcn.004243a2
cmp byte [edi + 0x45], 0
je 0x4141e0
call fcn.004243a2
jmp 0x414101
mov eax, dword [ebp]
jmp 0x4141a3
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x45], 0
jne 0x414202
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
jne 0x4141fb
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
je 0x4141f1
mov edi, ecx
jmp 0x414101
mov eax, dword [edi + 4]
cmp byte [eax + 0x45], 0
jne 0x414220
jmp 0x414210
cmp edi, dword [eax + 8]
jne 0x414220
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x414210
mov edi, eax
jmp 0x414101
cmp dword [esp + 0x40], 0
jne 0x414233
call fcn.004243a2
cmp byte [ebx + 0x49], 0
je 0x41424b
call fcn.004243a2
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
jmp 0x4140c6
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x49], 0
jne 0x414279
mov eax, dword [ecx]
cmp byte [eax + 0x49], 0
jne 0x41426a
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x49], 0
je 0x414260
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ebx, ecx
jmp 0x4140c6
mov eax, dword [ebx + 4]
cmp byte [eax + 0x49], 0
jne 0x414292
cmp ebx, dword [eax + 8]
jne 0x414292
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x49], 0
je 0x414282
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ebx, eax
jmp 0x4140c6
cmp dword [esp + 0x114], 0
je 0x4144da
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.0040ec00
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.0040ec00
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.00413240
mov ebx, 0x10
cmp dword [esp + 0x3c], ebx
jb 0x41433f
mov eax, dword [esp + 0x28]
push eax
call fcn.00423e76
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 0x41436d
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00423e76
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.00414e10
mov byte [esp + 0x128], bl
cmp dword [esp + 0xf8], esi
jne 0x414457
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.0040ec00
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.0040ec00
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.00413490
cmp dword [esp + 0x3c], ebx
jb 0x41442f
mov edx, dword [esp + 0x28]
push edx
call fcn.00423e76
add esp, 4
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], 0
cmp dword [esp + 0xa8], ebx
jb 0x414490
mov eax, dword [esp + 0x94]
push eax
call fcn.00423e76
add esp, 4
jmp 0x414490
lea eax, [esp + 0xac]
lea edx, [esp + 0xe4]
call fcn.004116c0
test al, al
jne 0x414490
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx + 4]
push edx
mov ecx, edi
call fcn.00415980
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 0x4144a9
mov eax, dword [esp + 0xb0]
push eax
call fcn.00423e76
add esp, 4
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc0], esi
mov byte [esp + 0xb0], 0
cmp dword [esp + 0xfc], ebx
jb 0x4144df
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.00423e76
add esp, 4
jmp 0x4144df
mov ebx, 0x10
cmp dword [esp + 0x118], ebx
jb 0x4144f8
mov edx, dword [esp + 0x104]
push edx
call fcn.00423e76
add esp, 4
cmp dword [esp + 0x18], 0
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], 0
mov byte [esp + 0x104], 0
je 0x414528
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x413b20