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

Disassembly:
push 0xffffffffffffffff
push 0x48b9e3
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4a4100]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4100]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
add esi, 0x20
mov ebx, 8
cmp dword [esi + 0x18], ebx
jb 0x45e8e3
mov eax, dword [esi + 4]
jmp 0x45e8e6
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e99e
cmp dword [esi + 0x18], ebx
jb 0x45e8ff
mov eax, dword [esi + 4]
jmp 0x45e902
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x45e99e
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov ecx, esi
lea edi, [esp + 0x14]
mov dword [esp + 0x128], ebp
call fcn.00465aa0
test eax, eax
jne 0x45e966
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x45e948
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [esp + 0x14], edi
push 0x64
call ebx
inc ebp
cmp ebp, 5
jge 0x45e993
mov ecx, esi
lea edi, [esp + 0x14]
call fcn.00465aa0
test eax, eax
je 0x45e933
mov ebx, 8
push 0xfffe
call fcn.0046a020
add esp, 4
push 0xfffe
mov edi, eax
push 0
push edi
mov dword [esp + 0x48], edi
call fcn.00474b70
add esp, 0xc
cmp dword [esi + 0x18], ebx
jb 0x45e9c8
mov esi, dword [esi + 4]
jmp 0x45e9cb
test edi, edi
je 0x45e99e
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.0046f01c
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 + 0x1c], edi
je 0x45eee1
lea eax, [esp + 0x4c]
push eax
call fcn.004606b0
push 0x2000
mov byte [esp + 0x12c], 1
call fcn.0046a020
add esp, 4
push 0x2000
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x50], ebp
call fcn.00474b70
mov eax, dword [esp + 0x24]
add eax, 0x20
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x45ea2d
mov eax, dword [eax + 4]
jmp 0x45ea30
add eax, 4
mov ecx, dword [esp + 0x1c]
push eax
push 0x1000
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp word [ebp], 0
je 0x45ed43
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 0x45ea72
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x98]
call fcn.00405fe0
push 0x49561c
mov ebx, 1
xor eax, eax
lea edx, [esp + 0x94]
mov byte [esp + 0x12c], 2
call fcn.0044b620
mov edi, eax
cmp edi, 0xffffffff
je 0x45ec90
lea eax, [esp + 0x90]
push eax
mov ecx, edi
xor edx, edx
lea esi, [esp + 0xb0]
call fcn.0044b5f0
lea ecx, [esp + 0x90]
push ecx
lea edx, [edi + 1]
or ecx, 0xffffffff
lea esi, [esp + 0xcc]
mov byte [esp + 0x12c], 3
call fcn.0044b5f0
mov byte [esp + 0x128], 4
cmp dword [esp + 0xdc], 0x20
je 0x45eba2
mov ebx, 8
cmp dword [esp + 0xe0], ebx
jb 0x45eb28
mov edx, dword [esp + 0xcc]
push edx
call fcn.0046f011
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 0x45eb60
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0046f011
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 0x45ecc0
mov eax, dword [esp + 0x94]
push eax
call fcn.0046f011
add esp, 4
jmp 0x45ecc0
lea ecx, [esp + 0xc8]
lea edi, [esp + 0x74]
call fcn.004655a0
mov esi, eax
lea ecx, [esp + 0xac]
lea edi, [esp + 0xe4]
mov byte [esp + 0x128], 5
call fcn.004655a0
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x12c], 6
call fcn.0045ff80
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push esi
mov ecx, eax
call fcn.00405090
mov esi, 0x10
cmp dword [esp + 0xfc], esi
jb 0x45ec0c
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.0046f011
add esp, 4
mov dword [esp + 0xfc], 0xf
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
cmp dword [esp + 0x8c], esi
jb 0x45ec3b
mov edx, dword [esp + 0x78]
push edx
call fcn.0046f011
add esp, 4
mov esi, 8
cmp dword [esp + 0xe0], esi
jb 0x45ec59
mov eax, dword [esp + 0xcc]
push eax
call fcn.0046f011
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 0x45ec95
mov edx, dword [esp + 0xb0]
push edx
call fcn.0046f011
add esp, 4
jmp 0x45ec95
mov esi, 8
mov byte [esp + 0x128], 1
cmp dword [esp + 0xa8], esi
jb 0x45ecb6
mov eax, dword [esp + 0x94]
push eax
call fcn.0046f011
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 0x45ece0
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0xd0]
call fcn.00405fe0
mov edx, dword [esp + 0xdc]
lea ebp, [ebp + edx*2 + 2]
cmp dword [esp + 0xe0], ebx
jb 0x45ed21
mov eax, dword [esp + 0xcc]
push eax
call fcn.0046f011
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 0x45ea4d
xor edx, edx
mov word [esp + 0xb0], dx
mov edx, dword [esp + 0x1c]
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 0x45ed70
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0xb4]
call fcn.00405fe0
lea ecx, [esp + 0xac]
lea edi, [esp + 0xe4]
mov byte [esp + 0x128], bl
call fcn.004655a0
mov ecx, dword [esp + 0x18]
push ecx
mov ebx, eax
mov byte [esp + 0x12c], 8
call fcn.0045fda0
mov esi, eax
lea edx, [esp + 0x4c]
cmp esi, edx
je 0x45ede7
mov eax, dword [esi + 0x18]
mov ecx, dword [esi]
mov edx, dword [eax]
push eax
push ecx
push edx
push ecx
lea eax, [esp + 0x7c]
push eax
mov eax, esi
call fcn.00460950
lea ebx, [esp + 0x4c]
mov eax, esi
call fcn.00460a30
cmp dword [esp + 0xfc], 0x10
jb 0x45ee01
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.0046f011
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 0x45ee3a
mov edx, dword [esp + 0xb0]
push edx
call fcn.0046f011
add esp, 4
mov eax, dword [esp + 0x44]
push eax
call fcn.0046f324
add esp, 4
lea esi, [esp + 0x4c]
mov byte [esp + 0x128], 9
call fcn.00460c90
mov byte [esp + 0x128], bl
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0046f011
mov esi, dword [esp + 0x20]
add esp, 4
xor edx, edx
mov edi, 7
mov eax, esi
mov word [esp + 0x24], dx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45ee90
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.00405fe0
mov eax, dword [esp + 0x34]
lea esi, [esi + eax*2 + 2]
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x38], ebp
jb 0x45eec9
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0046f011
add esp, 4
xor edx, edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], dx
cmp word [esi], bx
jne 0x45e9e6
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, esi
je 0x45eef6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x3c]
push eax
call fcn.0046f324
add esp, 4
push esi
push 0x4944e0
lea ecx, [esp + 0x108]
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], esi
mov byte [esp + 0x10c], 0
call fcn.00404be0
mov edi, dword [esp + 0x18]
mov byte [esp + 0x128], 0xa
mov eax, dword [edi + 0x18]
mov ebp, dword [eax]
mov ebx, dword [edi]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
lea ebx, [ebx]
mov esi, dword [edi + 0x18]
mov eax, dword [edi]
test ebx, ebx
je 0x45ef5d
cmp ebx, eax
je 0x45ef62
call fcn.0046f637
cmp ebp, esi
je 0x45f089
test ebx, ebx
jne 0x45effc
call fcn.0046f637
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x45ef83
call fcn.0046f637
mov ecx, dword [ebp + 0x40]
mov edi, dword [ecx]
mov ebx, dword [ebp + 0x28]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x45f003
call fcn.0046f637
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x45efac
call fcn.0046f637
mov esi, dword [ebp + 0x40]
mov eax, dword [ebp + 0x28]
test ebx, ebx
je 0x45efba
cmp ebx, eax
je 0x45efbf
call fcn.0046f637
cmp edi, esi
je 0x45f06f
test ebx, ebx
jne 0x45f007
call fcn.0046f637
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x45efdc
call fcn.0046f637
mov esi, dword [edi + 0x20]
mov eax, esi
cmp eax, esi
jae 0x45efe5
mov eax, esi
cmp esi, 8
jb 0x45eff1
mov eax, 8
cmp dword [edi + 0x24], 0x10
jb 0x45f00b
mov edx, dword [edi + 0x10]
jmp 0x45f00e
mov eax, dword [ebx]
jmp 0x45ef79
mov eax, dword [eax]
jmp 0x45efa2
mov eax, dword [ebx]
jmp 0x45efd2
lea edx, [edi + 0x10]
mov ecx, str.config15
call fcn.0045b100
test eax, eax
jne 0x45f02b
cmp esi, 8
jb 0x45f02b
cmp esi, 8
setne al
test eax, eax
je 0x45f055
test ebx, ebx
jne 0x45f06b
call fcn.0046f637
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x45f040
call fcn.0046f637
push 0
add edi, 0x28
push edi
or eax, 0xffffffff
lea esi, [esp + 0x108]
call fcn.004031f0
lea esi, [esp + 0x44]
call fcn.00460cd0
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x45ef93
mov eax, dword [ebx]
jmp 0x45f036
lea esi, [esp + 0x3c]
call fcn.00461300
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
jmp 0x45ef50
cmp dword [esp + 0x114], 0
je 0x45f2c2
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.00404be0
mov byte [esp + 0x128], 0xb
push 7
push str.config4
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], esi
mov byte [esp + 0x2c], 0
call fcn.00404be0
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x28]
mov ecx, edi
mov byte [esp + 0x130], 0xc
call fcn.0045e120
mov ebx, 0x10
cmp dword [esp + 0x38], ebx
jb 0x45f127
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0046f011
add esp, 4
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], 0
mov byte [esp + 0x128], 0xf
cmp dword [esp + 0xa8], ebx
jb 0x45f155
mov edx, dword [esp + 0x94]
push edx
call fcn.0046f011
add esp, 4
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x104]
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], esi
mov byte [esp + 0x98], 0
call fcn.0045fa70
mov byte [esp + 0x128], bl
cmp dword [esp + 0xf8], esi
jne 0x45f23f
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.00404be0
mov byte [esp + 0x128], 0x11
push 7
push str.config4
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], esi
mov byte [esp + 0x2c], 0
call fcn.00404be0
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x28]
mov edx, edi
mov byte [esp + 0x130], 0x12
call fcn.0045e370
cmp dword [esp + 0x38], ebx
jb 0x45f217
mov eax, dword [esp + 0x24]
push eax
call fcn.0046f011
add esp, 4
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], 0
cmp dword [esp + 0xa8], ebx
jb 0x45f278
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0046f011
add esp, 4
jmp 0x45f278
lea eax, [esp + 0xac]
lea edx, [esp + 0xe4]
call fcn.0045c640
test al, al
jne 0x45f278
mov edx, dword [edi + 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, edi
call fcn.00460630
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 0x45f291
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0046f011
add esp, 4
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc0], esi
mov byte [esp + 0xb0], 0
cmp dword [esp + 0xfc], ebx
jb 0x45f2c7
mov edx, dword [esp + 0xe8]
push edx
call fcn.0046f011
add esp, 4
jmp 0x45f2c7
mov ebx, 0x10
cmp dword [esp + 0x118], ebx
jb 0x45f2e0
mov eax, dword [esp + 0x104]
push eax
call fcn.0046f011
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], 0
mov byte [esp + 0x104], 0
test eax, eax
je 0x45f30d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x45e9a0