Function at 0x422cc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x310
lea eax, [esp + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push edi
push 0x104
push eax
mov ebx, ecx
push 0
call ebp
test eax, eax
je 0x422d2c
lea ecx, [esp + 0x14]
lea edi, [ebx + 4]
test ecx, ecx
jne 0x422cf3
xor esi, esi
jmp 0x422d00
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
mov ecx, edi
call fcn.00422f80
test eax, eax
je 0x422d2c
mov edx, dword [edi]
lea eax, [esp + 0x14]
push esi
lea ecx, [esi + 1]
push eax
push ecx
push edx
call fcn.004023d0
mov eax, dword [edi]
add esp, 0x10
mov dword [eax - 8], esi
mov ecx, dword [edi]
mov byte [ecx + esi], 0
mov eax, dword [esp + 0x324]
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
call ebp
test eax, eax
je 0x422dbe
lea ecx, [esp + 0x14]
lea edi, [ebx + 8]
test ecx, ecx
jne 0x422d53
xor esi, esi
jmp 0x422d60
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
mov ecx, edi
call fcn.00422f80
test eax, eax
je 0x422d8c
mov edx, dword [edi]
lea eax, [esp + 0x14]
push esi
lea ecx, [esi + 1]
push eax
push ecx
push edx
call fcn.004023d0
mov eax, dword [edi]
add esp, 0x10
mov dword [eax - 8], esi
mov ecx, dword [edi]
mov byte [ecx + esi], 0
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
je 0x422dbe
lea eax, [esp + 0x14]
lea esi, [ebx + 0xc]
test eax, eax
je 0x422db1
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x14]
mov ecx, esi
push edx
push eax
call fcn.0041a970
mov dl, byte [0x445264]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x21c], dl
mov byte [esp + 0x118], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathCombineA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 0xc]
push str.dpath.ini
lea ecx, [esp + 0x220]
push eax
push ecx
call ebp
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x11c]
push 0x104
push eax
push ecx
push str.datapath
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x118]
push str.360arpup.ini
lea eax, [ebx + 0x11c]
push edx
push eax
call ebp
lea ecx, [esp + 0x118]
push str.Version.ini
lea edx, [ebx + 0x220]
push ecx
push edx
call ebp
mov eax, dword [ebx + 0xc]
push str.FixedWL.dat
lea ecx, [ebx + 0x324]
push eax
push ecx
call ebp
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
lea esi, [ebx + 0x10]
cmp eax, edi
je 0x422ed1
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x422e99
mov ecx, dword [0x444024]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x422ea0
mov eax, dword [edi - 0xc]
test eax, eax
jge 0x422ee7
mov ebp, dword [edi - 8]
mov ecx, esi
push ebp
call fcn.00422f80
test eax, eax
je 0x422ecb
mov eax, dword [esi]
push ebp
lea edx, [ebp + 1]
push edi
push edx
push eax
call fcn.004023d0
mov ecx, dword [esi]
add esp, 0x10
mov dword [ecx - 8], ebp
mov edx, dword [esi]
mov byte [edx + ebp], 0
mov ebp, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [esp + 0x118]
lea edi, [ebx + 0x14]
test eax, eax
jne 0x422eff
xor esi, esi
mov dword [esp + 0x10], esi
jmp 0x422f13
mov ecx, esi
call fcn.00405770
mov eax, dword [ebx + 0xc]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x422ed1
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x10], eax
mov esi, eax
push esi
mov ecx, edi
call fcn.00422f80
test eax, eax
je 0x422f52
lea edx, [esi + 1]
cmp edx, esi
jb 0x422f43
mov edi, dword [edi]
mov ecx, esi
mov eax, ecx
lea esi, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x14]
lea edi, [ebx + 0x14]
mov dword [ecx - 8], esi
mov edx, dword [edi]
mov byte [edx + esi], 0
mov eax, dword [edi]
push eax
call fcn.0041fc80
mov ecx, dword [edi]
add esp, 4
add ebx, 0x18
push str.antiarpopt.dat
push ecx
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret 4