Function at 0x1004e530
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007e6f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x484
push ebx
push ebp
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx + 0x14]
test ecx, ecx
push esi
push edi
jne 0x1004e76a
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov dword [esp + 0x49c], 0
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov ebx, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, ebx
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x49c], 1
jge 0x1004e5c8
push 0x104
lea ecx, [esp + 0x1c]
call fcn.100029f0
mov esi, dword [esp + 0x18]
mov eax, dword [0x10098990]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test esi, esi
jne 0x1004e5e2
xor eax, eax
jmp 0x1004e5f6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004e5e7
sub eax, edx
js 0x1004eb00
cmp eax, dword [esi - 8]
jg 0x1004eb00
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.10069f52
add esp, 8
test eax, eax
jne 0x1004e61a
or eax, 0xffffffff
jmp 0x1004e61c
sub eax, esi
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.10008ae0
mov edx, dword [eax]
push edx
lea eax, [esp + 0x24]
push str._sAD_addr.ini
push eax
mov byte [esp + 0x4a8], 2
call fcn.10004e20
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x49c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004e66e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
mov byte [esp + 0x38], 0
mov ecx, 0x18
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
push 0x104
stosb byte es:[edi], al
lea eax, [esp + 0x40]
push eax
push 0x10081bf2
push str.index
push 0x10084d78
call ebx
test eax, eax
jne 0x1004e70a
add ebp, 0xfffffff0
mov byte [esp + 0x49c], al
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004e6cf
mov ecx, dword [ebp]
mov eax, dword [ecx]
push ebp
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [esp + 0x49c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004e76a
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0x494]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x38]
push ecx
call fcn.1006a4e0
mov edx, dword [esp + 0x20]
add esp, 4
test eax, eax
mov dword [edx + 0x58], eax
jge 0x1004e780
add ebp, 0xfffffff0
mov byte [esp + 0x49c], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1004e745
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
add esi, 0xfffffff0
mov dword [esp + 0x49c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1004e76a
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x494]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov esi, 1
call dword [eax + 0xc]
mov edx, dword [0x10098a04]
add eax, 0x10
mov ecx, 0x10098a04
mov dword [esp + 0x30], eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
xor eax, eax
mov byte [esp + 0xa0], 0
mov ecx, 0x7c
lea edi, [esp + 0xa1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x298], 0
mov ecx, 0x7c
lea edi, [esp + 0x299]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x49c], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x18]
push str.ads_d
push ecx
mov byte [esp + 0x4a8], 4
call fcn.10004e20
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebp
push 0x104
lea edx, [esp + 0xa8]
push edx
push 0x10081bf2
push eax
push 0x10084d78
call ebx
push esi
lea ecx, [esp + 0x18]
push str.url_d
push ecx
mov edi, eax
call fcn.10004e20
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebp
push 0x104
lea edx, [esp + 0x2a0]
push edx
push 0x10081bf2
push eax
push 0x10084d78
call ebx
test edi, edi
je 0x1004ea44
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004e896
sub eax, edx
push eax
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x38]
call fcn.100048d0
lea eax, [esp + 0x298]
lea edx, [eax + 1]
jmp 0x1004e8c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004e8c0
sub eax, edx
push eax
lea edx, [esp + 0x29c]
push edx
lea ecx, [esp + 0x3c]
call fcn.100048d0
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + 4]
call fcn.1004e4c0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x49c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004e90e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x49c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004e934
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004e952
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
inc esi
call dword [eax + 0xc]
mov edx, dword [0x10098a04]
add eax, 0x10
mov ecx, 0x10098a04
mov dword [esp + 0x30], eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
xor eax, eax
mov byte [esp + 0xa0], 0
mov ecx, 0x7c
lea edi, [esp + 0xa1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x298], 0
mov ecx, 0x7c
lea edi, [esp + 0x299]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x49c], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x18]
push str.ads_d
push ecx
mov byte [esp + 0x4a8], 4
call fcn.10004e20
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebp
push 0x104
lea edx, [esp + 0xa8]
push edx
push 0x10081bf2
push eax
push 0x10084d78
call ebx
push esi
lea ecx, [esp + 0x18]
push str.url_d
push ecx
mov edi, eax
call fcn.10004e20
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebp
push 0x104
lea edx, [esp + 0x2a0]
push edx
push 0x10081bf2
push eax
push 0x10084d78
call ebx
test edi, edi
jne 0x1004e876
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x49c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004ea6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x49c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004ea90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004eaae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x49c], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1004ead1
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x49c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004e76a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
jmp 0x1004e767
push 0x80070057
call fcn.10001330
int3