Function at 0x1003ecd1
Capabilities:
Get common file path
Get file size

Disassembly:
mov eax, 0x100597bb
call fcn.10052270
mov eax, 0x173c
call fcn.100522c0
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x13b]
mov byte [ebp - 0x13c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x343]
mov byte [ebp - 0x344], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp - 0x20]
stosb byte es:[edi], al
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.1003f419
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x13c]
push eax
call fcn.1004b088
test eax, eax
jne 0x1003f21c
lea eax, [ebp - 0x13c]
push eax
call fcn.1001e196
test eax, eax
pop ecx
je 0x1003f21c
mov al, byte [ebp - 0x25]
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x38], al
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x13c]
lea ecx, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call fcn.100034da
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 1
push dword [ebp - 0x30]
call fcn.100038e6
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.1000349d
push ebx
push ebx
push 3
push ebx
push 1
lea eax, [ebp - 0x13c]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003ee86
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x1003ee86
and si, 0xfc00
cmp esi, 0x4b000
jbe 0x1003ee86
lea eax, [ebp - 0x13c]
lea ecx, [ebp - 0x10]
push eax
call fcn.100034da
push eax
lea eax, [ebp - 0x1c]
push 0x10074b90
push eax
mov byte [ebp - 4], 2
call fcn.10018353
mov eax, dword [eax]
push 4
lea ecx, [ebp - 0x38]
push ebx
push ecx
mov ecx, dword [ebp - 0x20]
push 1
push 0x10076c54
push 0x10070cfc
push eax
push 0x10076c38
mov byte [ebp - 4], 3
call fcn.1004ac01
lea ecx, [ebp - 0x1c]
mov edi, eax
mov byte [ebp - 4], 2
call fcn.1000349d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.1000349d
push ecx
lea eax, [ebp - 0x344]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.100034da
push ecx
lea eax, [ebp - 0x13c]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov byte [ebp - 4], 4
call fcn.100034da
mov ecx, dword [ebp - 0x20]
push 1
push edi
mov byte [ebp - 4], bl
call fcn.1003f380
jmp 0x1003f210
lea eax, [ebp - 0x13c]
push 1
push eax
lea ecx, [ebp - 0x1348]
call fcn.1003cb0c
cmp dword [ebp - 0x348], ebx
mov byte [ebp - 4], 6
jne 0x1003eeae
mov byte [ebp - 4], bl
jmp 0x1003f20a
lea eax, [ebp - 0x1748]
mov dword [ebp - 0x1c], ebx
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x1748]
lea ecx, [ebp - 0x24]
push eax
call fcn.100034da
push 0x10071574
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.1001e8c8
mov edi, 0x10076c30
mov eax, edi
test eax, eax
je 0x1003eef5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
lea ecx, [ebp - 0x24]
call fcn.10009b8e
push 0x10076b40
push dword [ebp - 0x24]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp - 0x18], eax
pop ecx
lea ecx, [ebp - 0x1348]
call fcn.1003cb8a
test al, al
je 0x1003f0a2
mov edi, dword [sym.imp.MSVCRT.dll_fputs]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea eax, [ebp - 0x1348]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x104
pop ecx
jb 0x1003ef4b
mov byte [ebp - 0x1245], bl
lea eax, [ebp - 0x1348]
lea ecx, [ebp - 0x14]
push eax
call fcn.100034da
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
push eax
call fcn.1001d7a2
mov dword [esp], 0x10078b14
push dword [ebp - 0x14]
call esi
pop ecx
test eax, eax
pop ecx
je 0x1003f083
mov ecx, dword [ebp - 0x14]
mov al, byte [ecx]
cmp al, 0x23
je 0x1003f070
cmp al, bl
je 0x1003f070
push str.127.0.0.1_localhost
push ecx
call esi
pop ecx
test eax, eax
pop ecx
je 0x1003f070
push str.::1_localhost
push dword [ebp - 0x14]
call esi
pop ecx
test eax, eax
pop ecx
je 0x1003f070
push ebx
push str.192.
lea ecx, [ebp - 0x14]
call fcn.100038ba
test eax, eax
je 0x1003efdc
push ebx
push str.172.
lea ecx, [ebp - 0x14]
call fcn.100038ba
test eax, eax
jne 0x1003f002
push ebx
push str.360safe.com
lea ecx, [ebp - 0x14]
call fcn.100038ba
cmp eax, 0xffffffff
jne 0x1003f002
push ebx
push str.360.cn
lea ecx, [ebp - 0x14]
call fcn.100038ba
cmp eax, 0xffffffff
je 0x1003f070
mov ecx, dword [0x10070040]
push 1
pop eax
mov dword [ebp - 0x10], ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call fcn.1000337d
test eax, eax
je 0x1003f02d
push 1
push 0x23
push dword [ebp - 0x10]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1348]
mov byte [ebp - 4], 9
test eax, eax
je 0x1003f048
lea eax, [ebp - 0x1348]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x1348]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.10009b8e
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call edi
pop ecx
mov byte [ebp - 4], 8
pop ecx
lea ecx, [ebp - 0x10]
call fcn.1000349d
jmp 0x1003f083
cmp dword [ebp - 0x18], ebx
je 0x1003f083
push dword [ebp - 0x18]
lea eax, [ebp - 0x1348]
push eax
call edi
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.1000349d
lea ecx, [ebp - 0x1348]
call fcn.1003cb8a
test al, al
jne 0x1003ef31
cmp dword [ebp - 0x348], ebx
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
je 0x1003f0b9
push dword [ebp - 0x348]
call esi
pop ecx
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x348], ebx
je 0x1003f0d4
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_fflush]
push dword [ebp - 0x18]
call esi
pop ecx
pop ecx
cmp dword [ebp - 0x1c], ebx
je 0x1003f1ea
lea eax, [ebp - 0x13c]
lea ecx, [ebp - 0x1c]
push eax
call fcn.100034da
push eax
lea eax, [ebp - 0x10]
push 0x10074b90
push eax
mov byte [ebp - 4], 0xa
call fcn.10018353
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call fcn.1000349d
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x23f]
mov byte [ebp - 0x240], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x240]
push eax
push ebx
lea eax, [ebp - 0x13c]
push ebx
push eax
call fcn.1000f9c9
add esp, 0x14
test eax, eax
je 0x1003f185
mov edi, 0x10076bd8
mov eax, edi
test eax, eax
je 0x1003f154
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.10009b8e
lea eax, [ebp - 0x240]
test eax, eax
je 0x1003f175
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x240]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.10009b8e
push 4
lea eax, [ebp - 0x38]
push ebx
push eax
mov ecx, dword [ebp - 0x20]
push 1
push 0x10076c54
push 0x10070cfc
push dword [ebp - 0x10]
push 0x10076c38
call fcn.1004ac01
mov edi, eax
push ecx
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.1001e895
push ecx
lea eax, [ebp - 0x13c]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 0xd
call fcn.100034da
mov ecx, dword [ebp - 0x20]
push 2
push edi
mov byte [ebp - 4], 0xc
call fcn.1003f380
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.1000349d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.1000349d
cmp dword [ebp - 0x348], ebx
mov byte [ebp - 4], bl
je 0x1003f20a
push dword [ebp - 0x348]
call esi
pop ecx
mov dword [ebp - 0x348], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.10003457
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret