Function at 0x46d970
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c78d7
mov eax, dword fs:[0]
push eax
mov eax, 0xa04c
call fcn.0047e8f0
mov eax, dword [0x4fca20]
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 eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
lea ecx, [ebp - 0xa03c]
push ecx
mov dword [ebp - 0xa038], eax
call fcn.0045c9a0
push esi
push eax
lea edx, [ebp - 0xa030]
push edx
mov dword [ebp - 4], 0
call fcn.0040338d
add esp, 0x10
mov eax, dword [ebp - 0xa03c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d9fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xa030]
push ecx
push 0x5000
lea edx, [ebp - 0xa010]
push edx
push 0x4cd850
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x46dba5
push 2
lea ecx, [ebp - 0xa058]
call fcn.00414680
lea eax, [ebp - 0xa010]
push eax
lea ecx, [ebp - 0xa058]
mov byte [ebp - 4], 3
call fcn.00414d70
mov edi, 7
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0xa018], edi
mov dword [ebp - 0xa01c], ebx
mov word [ebp - 0xa02c], cx
mov esi, vtable.CResponseDecoder.0
mov dword [ebp - 0xa034], esi
push ebx
push str.135246
lea edx, [ebp - 0xa02c]
push edx
sub esp, 0x10
lea eax, [ebp - 0xa054]
mov ecx, esp
mov dword [ebp - 0xa040], esp
push eax
mov byte [ebp - 4], 5
call fcn.00414260
lea ecx, [ebp - 0xa034]
call fcn.004af780
cmp eax, ebx
je 0x46db63
cmp dword [ebp - 0xa018], 8
jb 0x46dac4
mov eax, dword [ebp - 0xa02c]
mov edx, eax
cmp eax, ebx
jne 0x46daca
xor eax, eax
jmp 0x46dae4
lea edx, [ebp - 0xa02c]
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46dad0
sub eax, edi
sar eax, 1
mov edi, 7
mov ecx, dword [ebp - 0xa038]
push eax
push edx
call fcn.0040170b
cmp dword [ebp - 0xa018], 8
mov dword [ebp - 0xa034], esi
jb 0x46db0f
mov ecx, dword [ebp - 0xa02c]
push ecx
call fcn.0047d656
add esp, 4
xor edx, edx
lea ecx, [ebp - 0xa058]
mov dword [ebp - 0xa018], edi
mov dword [ebp - 0xa01c], ebx
mov word [ebp - 0xa02c], dx
mov byte [ebp - 4], 2
call fcn.004146c0
mov eax, dword [ebp - 0xa030]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46db5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x46dbcc
cmp dword [ebp - 0xa018], 8
mov dword [ebp - 0xa034], esi
jb 0x46db81
mov ecx, dword [ebp - 0xa02c]
push ecx
call fcn.0047d656
add esp, 4
xor edx, edx
lea ecx, [ebp - 0xa058]
mov dword [ebp - 0xa018], edi
mov dword [ebp - 0xa01c], ebx
mov word [ebp - 0xa02c], dx
mov byte [ebp - 4], 2
call fcn.004146c0
mov eax, dword [ebp - 0xa030]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46dbca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.0047e4d2
mov esp, ebp
pop ebp
ret