Function at 0x46ea70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cff2
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x244], ebx
test ebx, ebx
je 0x46ef46
test eax, eax
je 0x46ef46
push ebx
lea ecx, [ebp - 0x248]
call fcn.00415b40
push 0x500000
mov dword [ebp - 4], 0
call fcn.00493e6c
push 0x500000
push 0
push eax
mov dword [ebp - 0x224], eax
call fcn.004daa30
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004daa30
add esp, 0x1c
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x46ef67
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
push ebx
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.00415b40
mov eax, dword [ebp - 0x21c]
mov ebx, 0x55a63c
sub ebx, eax
mov byte [ebp - 4], 2
push 0xe
push 0x55a63c
mov edi, dword [eax - 0xc]
sar ebx, 1
mov dword [ebp - 0x230], edi
call fcn.0050891c
mov ecx, SysReAllocString
mov dword [ebp - 0x22c], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x46ef71
add edi, eax
js 0x46ef7b
mov eax, dword [ebp - 0x21c]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x46eba4
push edi
lea ecx, [ebp - 0x21c]
call fcn.0040d020
mov eax, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x230]
cmp ebx, edx
lea ebx, [eax + ebx*2]
jbe 0x46ebb6
mov ebx, 0x55a63c
mov ecx, dword [ebp - 0x22c]
lea eax, [eax + edx*2]
add ecx, ecx
push ecx
push ebx
push ecx
push eax
call fcn.0046ef90
mov eax, dword [ebp - 0x21c]
add esp, 0x10
cmp edi, dword [eax - 8]
jg 0x46ef71
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
mov word [eax + edi*2], cx
push dword [ebp - 0x21c]
push 0x280000
push dword [ebp - 0x224]
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x228], ecx
or edi, 0xffffffff
mov dword [ebp - 0x230], eax
test ecx, ecx
je 0x46eeda
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x228]
nop
movzx eax, word [ecx + eax*2]
test ax, ax
jne 0x46eea5
lea eax, [ebx + ebx]
cmp eax, 0x208
jae 0x46ef62
xor ecx, ecx
xor ebx, ebx
mov word [ebp + eax - 0x218], cx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x238], ebx
call fcn.00417c00
mov esi, dword [ebp - 0x220]
mov ecx, 1
mov edi, dword [ebp - 0x21c]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x46ec9e
push 0x104
lea ecx, [ebp - 0x220]
call fcn.0040d020
mov esi, dword [ebp - 0x220]
cmp dword [esi - 8], 0x104
jl 0x46ef71
push edi
push 0x104
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
push eax
mov word [esi + 0x208], ax
lea eax, [ebp - 0x218]
push str.path
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.0050891c
add esp, 8
test eax, eax
js 0x46ef71
cmp eax, dword [esi - 8]
jg 0x46ef71
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edx, dword [esi - 0xc]
test edx, edx
je 0x46eeb6
mov ecx, dword [ebp - 0x234]
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ed10
sub ecx, edi
sar ecx, 1
cmovns ebx, ecx
cmp ebx, edx
jl 0x46ed40
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00410300
mov edi, dword [ebp - 0x23c]
jmp 0x46eda7
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x46ed50
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x46ed64
call fcn.00412c30
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x46ef67
mov edx, dword [eax]
mov ecx, eax
push 2
push ebx
call dword [edx]
test eax, eax
je 0x46ef85
lea edi, [eax + 0x10]
mov dword [ebp - 0x23c], edi
test ebx, ebx
js 0x46ef71
cmp ebx, dword [edi - 8]
jg 0x46ef71
lea eax, [ebx + ebx]
mov dword [edi - 0xc], ebx
push eax
push esi
push eax
xor ecx, ecx
push edi
mov word [edi + eax], cx
call fcn.0046ef90
add esp, 0x10
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 3
test eax, eax
je 0x46ef67
push eax
push edi
call fcn.005055ff
add esp, 8
mov byte [ebp - 4], 2
test eax, eax
sete bl
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46ede4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x46eeb0
push dword [ebp - 0x244]
lea ecx, [ebp - 0x22c]
call fcn.00415b40
push dword [ebp - 0x234]
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 4
call fcn.00415b40
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0046e740
mov edx, dword [ebp - 0x240]
or edi, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 4
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x46ee59
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x22c]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ee7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
mov esi, dword [ebp - 0x220]
je 0x46ee9d
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push esi
push str.path
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, dword [ebp - 0x238]
jmp 0x46eeb9
mov word [ebp + ebx*2 - 0x218], ax
inc ebx
jmp 0x46eec5
mov ebx, dword [ebp - 0x238]
or edi, 0xffffffff
mov edx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x230], eax
cmp eax, edx
jb 0x46ec30
push dword [ebp - 0x224]
call fcn.00493fcc
mov edx, dword [ebp - 0x21c]
add esp, 4
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ef09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46ef24
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x46ef46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret
call fcn.00494217
push 0x80004005
call fcn.0040b4c0
push 0x80070057
call fcn.0040b4c0
push 0x80070057
call fcn.0040b4c0
call fcn.0040bab0
int3