Function at 0x48c780
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x511842
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x880
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea ebp, [ebx + 4]
push 0xffffffffffffffff
push 0
mov ecx, ebp
mov dword [esp + 0x24], ebx
call fcn.00470c20
lea eax, [esp + 0x14]
push eax
call fcn.00443670
add esp, 4
mov eax, dword [0x56b44c]
mov dword [esp + 0x898], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
lea edx, [esp + 0x94]
push 0x400
push edx
push 0x5705d0
push 0x56562c
push 0x565620
mov byte [esp + 0x8b0], 2
call esi
test eax, eax
jle 0x48cbd8
mov eax, dword [0x565614]
mov ecx, dword [0x565618]
mov edx, dword [0x56561c]
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [0x565608]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], edx
mov edx, dword [0x56560c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x48], ecx
mov word [esp + 0x74], ax
mov eax, dword [0x565610]
mov dword [esp + 0x4c], edx
mov edx, dword [0x5655fc]
xor ecx, ecx
mov dword [esp + 0x50], eax
mov eax, dword [0x565600]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x78], edx
xor edx, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x7c], eax
mov eax, dword [0x565620]
mov dword [esp + 0x84], edx
mov word [esp + 0x5c], cx
mov ecx, dword [0x565604]
mov dword [esp + 0x88], edx
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x80], ecx
mov ecx, dword [0x565624]
mov word [esp + 0x8c], dx
mov edx, dword [0x565628]
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push 3
push 0x5655ec
push edx
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x94]
push 0x400
push ecx
push 0x5705d0
lea edx, [esp + 0x44]
push 0x5655dc
push edx
call esi
lea eax, [esp + 0x90]
lea ecx, [esp + 0x28]
push eax
call fcn.004e1fbe
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x90]
push ecx
push 0x400
push edx
push 0x5705d0
lea eax, [esp + 0x44]
push 0x5655cc
push eax
call esi
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x24]
call fcn.004e1fbe
push 0x28
call fcn.004e24f0
add esp, 4
test eax, eax
je 0x48c975
mov ecx, eax
call fcn.0048c240
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x48c981
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push 0x5705d0
push edx
call fcn.004bdb15
add esp, 8
test eax, eax
je 0x48cae0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48cae0
push 0x14
call fcn.004e24f0
add esp, 4
test eax, eax
je 0x48c9c3
mov ecx, eax
call fcn.0048c190
mov edi, eax
jmp 0x48c9c5
xor edi, edi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
mov dword [edi + 0x10], ecx
push edx
lea ecx, [edi + 0xc]
call fcn.004e1f6e
lea eax, [esp + 0x28]
lea ecx, [edi + 8]
push eax
call fcn.004e1f6e
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
add ecx, 4
mov eax, dword [ecx + 8]
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.00470ae0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc ebx
push 0xa
lea eax, [edx + 4]
lea edx, [esp + 0x6e]
push edx
push ebx
mov eax, dword [eax + 4]
mov dword [eax + ecx*4], edi
call fcn.004bdd5d
lea eax, [esp + 0x5e]
push 0xa
push eax
push ebx
call fcn.004bdd5d
lea ecx, [esp + 0x9a]
push 0xa
push ecx
push ebx
call fcn.004bdd5d
mov edx, dword [esp + 0x38]
add esp, 0x24
lea eax, [esp + 0x48]
lea ecx, [esp + 0x34]
push edx
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x94]
push 0x400
push eax
lea ecx, [esp + 0x84]
push 0x5705d0
lea edx, [esp + 0x44]
push ecx
push edx
call esi
lea eax, [esp + 0x90]
lea ecx, [esp + 0x28]
push eax
call fcn.004e1fbe
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x90]
push ecx
push 0x400
push edx
lea eax, [esp + 0x6c]
push 0x5705d0
lea ecx, [esp + 0x44]
push eax
push ecx
call esi
lea edx, [esp + 0x90]
lea ecx, [esp + 0x20]
push edx
call fcn.004e1fbe
mov eax, dword [esp + 0x20]
push 0x5705d0
push eax
call fcn.004bdb15
mov edi, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x48c99b
mov ecx, dword [0x57614c]
mov edx, dword [esp + 0x14]
push edx
push 0x400
mov eax, dword [ecx + 0x7fc]
lea ecx, [esp + 0x98]
push ecx
push eax
lea edx, [esp + 0x44]
push 0x56170c
push edx
call esi
lea eax, [esp + 0x90]
lea ecx, [edi + 0x18]
push eax
call fcn.004e1fbe
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push 0
lea edx, [esp + 0x3c]
push 0x5655b8
push edx
call ebx
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x3c]
push 0x5655a0
push ecx
call ebx
mov dword [edi + 0x24], eax
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x94]
push 0x400
push eax
push 0
lea ecx, [esp + 0x44]
push 0x56562c
push ecx
call esi
lea edx, [esp + 0x90]
lea ecx, [edi + 0x1c]
push edx
call fcn.004e1fbe
mov ebx, dword [ebp + 8]
push 0xffffffffffffffff
mov ecx, ebp
lea eax, [ebx + 1]
push eax
call fcn.00470c20
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x3e]
push 0xa
push edx
mov dword [ecx + ebx*4], edi
mov edi, dword [esp + 0x2c]
push edi
call fcn.004bdd5d
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x90]
lea edx, [esp + 0x34]
push eax
push 0x400
push ecx
push 0
inc edi
push 0x56562c
push edx
mov dword [esp + 0x3c], edi
call esi
test eax, eax
jg 0x48c8d0
mov ebx, dword [esp + 0x1c]
push 0
mov ecx, ebx
call fcn.0048c4b0
test eax, eax
jne 0x48cc86
mov eax, dword [0x56b44c]
mov dword [esp + 0x10], eax
mov eax, dword [0x5762a0]
mov byte [esp + 0x898], 3
test eax, eax
push 0xef81
lea ecx, [esp + 0x14]
je 0x48cc17
push ecx
call fcn.0041a380
add esp, 8
jmp 0x48cc1c
call fcn.004e2fed
push 0x28
call fcn.004e24f0
add esp, 4
test eax, eax
je 0x48cc35
mov ecx, eax
call fcn.0048c240
mov esi, eax
jmp 0x48cc37
xor esi, esi
push 0x5705d0
lea ecx, [esi + 0x18]
call fcn.004e1fbe
lea edx, [esp + 0x10]
mov edi, 1
push edx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x20], edi
call fcn.004e1f6e
mov ebx, dword [ebp + 8]
push 0xffffffffffffffff
mov ecx, ebp
lea eax, [ebx + 1]
push eax
call fcn.00470c20
mov ecx, dword [ebp + 4]
mov byte [esp + 0x898], 2
mov dword [ecx + ebx*4], esi
lea ecx, [esp + 0x10]
call fcn.004e1e27
mov ebx, dword [esp + 0x1c]
jmp 0x48cc8b
mov edi, 1
push edi
mov ecx, ebx
call fcn.0048c4b0
test eax, eax
jne 0x48ce5e
mov edx, dword [0x56b44c]
mov dword [esp + 0x10], edx
mov eax, dword [0x5762a0]
mov byte [esp + 0x898], 4
test eax, eax
push 0xef80
je 0x48ccca
lea eax, [esp + 0x14]
push eax
call fcn.0041a380
add esp, 8
jmp 0x48ccd3
lea ecx, [esp + 0x14]
call fcn.004e2fed
push 0x28
call fcn.004e24f0
add esp, 4
test eax, eax
je 0x48ccf0
mov ecx, eax
call fcn.0048c240
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x48ccfc
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
push 0x5705d0
lea ecx, [esi + 0x18]
call fcn.004e1fbe
lea ecx, [esp + 0x10]
mov dword [esi + 0x20], edi
push ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], edi
call fcn.004e1f6e
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov ebx, edx
xor edi, edi
mov dword [esp + 0x2c], ebx
inc ebx
cmp ebx, edi
jne 0x48cd4a
cmp eax, edi
je 0x48cd3f
push eax
call fcn.004e2519
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x48ce3d
cmp eax, edi
jne 0x48cd82
lea edi, [ebx*4]
push edi
call fcn.004e24f0
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x48ce3b
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x48cda4
cmp ebx, edx
jle 0x48cd9c
mov ecx, ebx
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp + 8], ebx
jmp 0x48ce3d
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x48cdce
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x48cdc2
mov eax, 4
jmp 0x48cdce
cmp eax, 0x400
jle 0x48cdce
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x24], eax
jl 0x48cddc
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
push ecx
call fcn.004e24f0
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x34], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 4]
push eax
call fcn.004e2519
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
xor edi, edi
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x898], 2
mov dword [edx + eax*4], esi
call fcn.004e1e27
mov ebx, dword [esp + 0x1c]
jmp 0x48ce60
xor edi, edi
mov ecx, ebx
call fcn.0048c500
test eax, eax
jne 0x48d01e
mov ecx, dword [0x56b44c]
mov dword [esp + 0x10], ecx
mov eax, dword [0x5762a0]
mov byte [esp + 0x898], 5
cmp eax, edi
push 0xef7f
je 0x48ce9e
lea edx, [esp + 0x14]
push edx
call fcn.0041a380
add esp, 8
jmp 0x48cea7
lea ecx, [esp + 0x14]
call fcn.004e2fed
push 0x28
call fcn.004e24f0
add esp, 4
cmp eax, edi
je 0x48cec4
mov ecx, eax
call fcn.0048c240
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x48ceca
mov dword [esp + 0x18], edi
mov esi, edi
push 0x561778
lea ecx, [esi + 0x18]
call fcn.004e1fbe
lea eax, [esp + 0x10]
lea ecx, [esi + 0x1c]
push eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
call fcn.004e1f6e
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov ebx, edx
mov dword [esp + 0x30], ebx
inc ebx
cmp ebx, edi
jne 0x48cf16
cmp eax, edi
je 0x48cf0b
push eax
call fcn.004e2519
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x48d003
cmp eax, edi
jne 0x48cf4e
lea edi, [ebx*4]
push edi
call fcn.004e24f0
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x48d003
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x48cf6e
cmp ebx, edx
jle 0x48cf66
mov ecx, ebx
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp + 8], ebx
jmp 0x48d003
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x48cf98
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x48cf8c
mov eax, 4
jmp 0x48cf98
cmp eax, 0x400
jle 0x48cf98
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x1c], eax
jl 0x48cfa6
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call fcn.004e24f0
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x30], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 4]
push eax
call fcn.004e2519
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x10]
mov byte [esp + 0x898], 2
mov dword [edx + eax*4], esi
call fcn.004e1e27
lea ecx, [esp + 0x28]
mov byte [esp + 0x898], 1
call fcn.004e1e27
lea ecx, [esp + 0x20]
mov byte [esp + 0x898], 0
call fcn.004e1e27
lea ecx, [esp + 0x14]
mov dword [esp + 0x898], 0xffffffff
call fcn.004e1e27
mov ecx, dword [esp + 0x890]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x88c
ret