Function at 0x45f010
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8250
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x5c]
xor esi, esi
push ebx
push eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
call fcn.0046b500
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
jne 0x45f26c
lea ecx, [ebp - 0x4c]
call fcn.0045aa80
mov dword [ebp - 4], esi
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
cmp word [edx], ax
jne 0x45f089
xor ecx, ecx
jmp 0x45f0a1
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x48], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f091
sub ecx, dword [ebp - 0x48]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00439160
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f0ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0048e9b0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, eax
je 0x45f0eb
push 0xffffffffffffffff
push 0
push eax
call fcn.00438df0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x45f104
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x30], 7
push str.Info.ini
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.0048eea0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.004af917
add esp, 8
cmp eax, 0xffffffff
jne 0x45f167
mov eax, dword [edi]
mov ecx, edi
push 0x17
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x45f2be
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00433600
jmp 0x45f2be
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x45f17c
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov ecx, 1
cmovae eax, dword [ebp - 0x2c]
sub ecx, dword [esi - 4]
mov dword [ebp - 0x50], eax
mov eax, dword [esi - 8]
sub eax, 0x105
or eax, ecx
jge 0x45f1bd
push 0x105
lea ecx, [ebp - 0x48]
call fcn.0041cb60
mov esi, dword [ebp - 0x48]
push dword [ebp - 0x50]
push 0x104
push esi
push 0x4ed230
push str.PacketVersion
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.004abd99
add esp, 8
test eax, eax
js 0x45f29b
cmp eax, dword [esi - 8]
jg 0x45f29b
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x4f5c24
push 0x515488
mov word [esi + eax*2], cx
call fcn.0048d4b0
add esp, 8
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.0041c6d0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45f23a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x45f256
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
xor esi, esi
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
push str._u._u._u._u
push dword [ebx]
call fcn.00468560
add esp, 0x18
cmp eax, 4
je 0x45f2a5
mov eax, dword [edi]
mov ecx, edi
push 0x18
call dword [eax + 0x1c]
jmp 0x45f2be
push 0x80070057
call fcn.0041cdf0
push dword [ebx]
mov esi, 1
push 0x4f5c4c
push 0x515488
call fcn.0048d4b0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 4