Function at 0x1001ba0c
Capabilities:
Check if file exists
Download url
Get file size
Read file on windows
Receive data

Disassembly:
push ebp
sub esp, 0x66c
lea ebp, [esp - 4]
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp + 0x66c], eax
push 0x44
mov eax, 0x100ce008
call fcn.10071ffd
mov ebx, 0x206
xor esi, esi
push ebx
lea eax, [ebp + 0x466]
push esi
push eax
mov edi, ecx
mov word [ebp + 0x464], si
call fcn.10072750
push ebx
lea eax, [ebp + 0x56]
push esi
push eax
mov word [ebp + 0x54], si
call fcn.10072750
add esp, 0x18
call fcn.1001de77
cmp dword [edi + 0x58], 8
jb 0x1001ba70
mov ecx, dword [edi + 0x44]
jmp 0x1001ba73
lea ecx, [edi + 0x44]
push eax
push str.Config
push ecx
lea eax, [ebp + 0x464]
push str._s_s_d.dat
push eax
call fcn.100048d5
add esp, 0x14
cmp dword [edi + 0x58], 8
jb 0x1001ba99
mov edi, dword [edi + 0x44]
jmp 0x1001ba9c
add edi, 0x44
push str.Config
push edi
lea eax, [ebp + 0x54]
push 0x100d8e38
push eax
call fcn.100048d5
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x464]
push eax
call edi
test eax, eax
jne 0x1001bbf5
lea eax, [ebp + 0x54]
push str..dat
push eax
call fcn.1001dcbf
push ebx
lea eax, [ebp + 0x25e]
push esi
push eax
mov word [ebp + 0x25c], si
call fcn.10072750
add esp, 0x14
push str.config.dfshurufa.com
lea ecx, [ebp - 0x34]
call fcn.10001580
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 4], esi
call fcn.1001f15a
pop ecx
pop ecx
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.10001770
push str.DongFang
lea ecx, [ebp - 0x50]
call fcn.100015f0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 3
call fcn.1001eb80
pop ecx
pop ecx
push esi
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.100017f0
lea eax, [ebp]
push eax
call fcn.1001ea5d
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.1001f15a
push 0x1869f
push 0x2710
mov byte [ebp - 4], 6
call fcn.1001ce06
mov edx, dword [ebp + 0x20]
add esp, 0x14
cmp dword [ebp + 0x34], 8
jae 0x1001bb86
lea edx, [ebp + 0x20]
cmp dword [ebp + 0x50], 8
mov ecx, dword [ebp + 0x3c]
jae 0x1001bb92
lea ecx, [ebp + 0x3c]
push eax
push str.srfconfig.dat
push edx
push ecx
lea eax, [ebp + 0x25c]
push str.http:___s__s_common__s__d
push eax
call fcn.100048d5
add esp, 0x18
push esi
push esi
lea eax, [ebp + 0x464]
push eax
lea eax, [ebp + 0x25c]
push eax
push esi
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, esi
je 0x1001bbd3
push str.Dowm_Load_Failed___
call fcn.100239c1
pop ecx
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.100017f0
push esi
push ebx
lea ecx, [ebp]
call fcn.10001770
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp + 0x38]
call fcn.100017f0
lea eax, [ebp + 0x464]
push eax
mov dword [ebp - 0x14], esi
call edi
test eax, eax
je 0x1001bcaa
push esi
push 0x80
push 4
push esi
push 1
push SysReAllocString
lea eax, [ebp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x1001bc35
xor eax, eax
jmp 0x1001bcb8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edi, [ebx + 1]
push edi
call fcn.1004ed41
cmp eax, esi
pop ecx
mov dword [ebp - 0x14], eax
je 0x1001bc2e
push edi
push esi
push eax
call fcn.10072750
add esp, 0xc
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
jbe 0x1001bcaa
push str.GUANGSU
xor edi, edi
call fcn.10071a00
pop ecx
xor ecx, ecx
cmp ebx, esi
mov dword [ebp - 0x10], eax
jbe 0x1001bcaa
mov eax, dword [ebp - 0x14]
mov dl, byte [edi + str.GUANGSU]
add eax, ecx
xor byte [eax], dl
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x1001bca5
xor edi, edi
inc ecx
cmp ecx, ebx
jb 0x1001bc90
push str.Get_Server_Config_File_Successed___
call fcn.100239c1
mov eax, dword [ebp - 0x14]
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x66c]
xor ecx, ebp
call fcn.10071fee
add ebp, 0x670
leave
ret