Function at 0x415530
Capabilities:
Get common file path
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45aa8b
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x477c1c]
xor eax, esp
mov dword [esp + 0x364], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477c1c]
xor eax, esp
push eax
lea eax, [esp + 0x37c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x71]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x24], esi
mov byte [esp + 0x78], bl
call fcn.00440d10
push 0x103
lea ecx, [esp + 0x181]
push ebx
push ecx
mov byte [esp + 0x188], bl
call fcn.00440d10
push 0x103
lea edx, [esp + 0x291]
push ebx
push edx
mov byte [esp + 0x298], bl
call fcn.00440d10
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add esp, 0x24
lea eax, [esp + 0x6c]
push eax
push 0x104
call edi
lea ecx, [esp + 0x274]
push ecx
push 0x104
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Pat.Ini
lea edx, [esp + 0x70]
push edx
call ebp
lea eax, [esp + 0x6c]
push eax
push ebx
push str.Count
push 0x45fc7c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x24], edi
jg 0x415618
xor al, al
jmp 0x4157c1
mov eax, dword [esi + 0x85c]
add esi, 0x84c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
cmp dword [esi + 0xc], eax
jbe 0x415636
call fcn.004408d8
mov ecx, dword [esi]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp ecx, dword [esi + 0x10]
jbe 0x415651
call fcn.004408d8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esi]
push edx
mov edx, dword [esp + 0x2c]
push edx
push ecx
push eax
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.0040f840
cmp edi, 4
mov eax, dword [esp + 0x18]
mov dword [eax + 0x848], edi
jle 0x415684
mov dword [eax + 0x848], 4
cmp edi, ebx
mov dword [esp + 0x14], ebx
jle 0x4157bf
lea edi, [eax + 0x38]
xor eax, eax
push 0x104
lea ecx, [esp + 0x174]
push ebx
push ecx
mov byte [esp + 0x58], bl
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov word [esp + 0x75], ax
mov byte [esp + 0x77], al
call fcn.00440d10
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x5c]
push 0x45fb78
push eax
call fcn.004410b5
add esp, 0x18
lea ecx, [esp + 0x6c]
push ecx
push 0x20
lea esi, [edi + 0x100]
push esi
push 0x45ec69
lea edx, [esp + 0x5c]
push edx
push 0x45fc7c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea eax, [esp + 0x174]
push eax
call ebp
lea eax, [esp + 0x170]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x415730
sub eax, ecx
push eax
lea ecx, [esp + 0x174]
push ecx
lea ecx, [esp + 0x38]
call fcn.00401da0
mov dword [esp + 0x384], ebx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
call fcn.00410bb0
mov dword [esp + 0x384], 0xffffffff
cmp dword [esp + 0x48], 0x10
jb 0x41577f
mov eax, dword [esp + 0x34]
push eax
call fcn.00421b49
add esp, 4
lea ecx, [esp + 0x274]
push ecx
push edi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call ebp
push 0x45ecf4
push edi
call ebp
push esi
push edi
call ebp
mov eax, dword [esp + 0x14]
inc eax
add edi, 0x204
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
jl 0x415693
mov al, 1
mov ecx, dword [esp + 0x37c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x364]
xor ecx, esp
call fcn.0044014d
add esp, 0x374
ret