Function at 0x1001184d
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x10047070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.100152f0
push str.C:log_
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.1001fbe0
push 0x3e8
lea eax, [ebp - 0xc10]
push ebx
push eax
call fcn.100152f0
add esp, 0x24
call fcn.1001362a
test al, al
je 0x100118bd
push esp
pop esi
push esp
pop ecx
push ebp
push ecx
pop eax
pop edi
push ecx
push esi
push edx
push ecx
pop esp
push ebp
push eax
pop esp
push esp
pop esp
call fcn.10013150
test al, al
je 0x100118e2
pop ebp
push eax
push esp
push ecx
push edi
push esp
push ebx
pop edi
push esp
push ecx
pop esp
push esp
pop ebx
pop ebx
pop edi
pop edx
push esi
pop ebp
push eax
push ecx
pop esp
push esp
pop esi
pop ecx
pop ebp
pop ebx
pop edx
push edx
call fcn.10013195
test al, al
je 0x10011907
push eax
push esi
pop edx
push edx
pop edx
pop ebp
push edi
pop edi
pop esp
push ebx
push esp
pop eax
pop esi
pop eax
push ecx
push esp
push edi
push edi
push edx
push edi
push ebx
pop ebx
push edx
push ebp
push edx
push edi
push esi
push esi
call fcn.100132ee
test al, al
je 0x1001192a
pop edx
push esi
pop edi
pop esi
pop edi
push esp
pop esp
pop ebp
push ebp
pop eax
push ebx
push edx
push esi
pop ebx
push edx
push edi
push eax
push ecx
pop edi
push ebp
push ebp
pop ecx
push edx
pop edi
pop esi
push ebx
call fcn.100131da
test al, al
je 0x10011949
push edi
push edi
push ebx
push eax
pop ebp
pop esi
pop edi
pop esp
pop ebp
push edx
pop edx
push edx
pop edi
pop ebp
push ebx
push esi
push edi
push eax
pop ebx
pop esp
pop ecx
pop ebx
push str.XiangCaoWifi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.log
push eax
call fcn.100116a5
mov edi, 0x208
lea eax, [ebp - 0x824]
push edi
xor esi, esi
push esi
push eax
call fcn.100152f0
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.100152f0
add esp, 0x28
call fcn.100135e5
test al, al
je 0x100119b0
pop ecx
pop ecx
pop ebx
push esi
pop ebp
pop esp
pop esi
pop ebx
pop ecx
pop edi
pop esp
push ebp
pop esi
pop ebx
pop edi
pop ecx
push eax
push edx
push ebp
pop esp
push ebp
push esi
pop esi
push edx
pop eax
push eax
push ebx
call fcn.100134d1
test al, al
je 0x100119ce
push ebp
pop eax
push ebp
push ecx
pop esp
push ebp
push eax
push esp
pop ecx
pop edi
push ecx
push edi
push ecx
push ebp
pop ecx
push eax
pop esp
push edi
push esp
pop edx
push eax
call fcn.1001310b
test al, al
je 0x100119eb
pop eax
push edi
push ebp
push ebx
push esp
push ebx
push ecx
pop edi
pop ebx
pop eax
pop esp
push esi
push ebp
pop ebp
push edi
pop ebp
push eax
push ebx
push edi
push edi
call fcn.1001366f
test al, al
je 0x10011a0f
push ecx
push edi
pop edx
pop ebp
pop esi
push edi
push ecx
pop eax
pop ebx
push ecx
push edx
pop ecx
push ebp
pop esp
push ebp
pop edi
push esp
pop edi
pop ebp
pop edi
pop esp
push esi
push esi
pop ebp
push esi
pop edx
push eax
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.10020a89
pop ecx
test eax, eax
je 0x10011bdb
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.10014ce1
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x10011bdb
lea eax, [ebp - 0x20c]
push eax
call fcn.10020a89
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.1001fbe0
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.100116a5
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xc10]
push 0x1f3
push 0x1f4
push eax
call fcn.1001200b
xor eax, eax
add esp, 0x38
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call esi
xor ecx, ecx
inc ecx
test eax, eax
cmovne edi, ecx
mov dword [ebp - 0xc14], edi
call fcn.100136f9
test al, al
je 0x10011b03
pop ebx
push ecx
push eax
push esi
pop ecx
pop eax
push ebx
pop ebx
pop ebp
push edi
pop edx
push edx
push eax
pop edx
push edx
pop ebp
pop eax
call fcn.10013402
test al, al
je 0x10011b1f
pop eax
pop eax
push ebx
push eax
pop esi
push edi
pop ecx
push edi
push ebp
pop ebp
pop ecx
push esp
pop eax
pop eax
push ebx
pop edx
pop ebp
pop ebx
pop esp
call fcn.10013195
test al, al
je 0x10011b43
push eax
push edx
push edx
push ebp
pop ebx
push esi
push eax
push edx
pop esi
pop edx
push ecx
push edi
pop edi
push edx
pop esp
push edx
push ecx
pop eax
pop ecx
push ecx
pop ecx
mov edi, dword [ebp - 0xc14]
lea eax, [ebp - 0x414]
push 0x10036578
push eax
call fcn.1001cf68
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10011bdb
test edi, edi
jne 0x10011b7e
push esi
push 2
lea eax, [ebp - 0xc18]
mov dword [ebp - 0xc18], 0xfeff
push 1
push eax
call fcn.1001d2ad
add esp, 0x10
lea eax, [ebp - 0xc10]
push eax
call fcn.10020a89
push esi
add eax, eax
push eax
lea eax, [ebp - 0xc10]
push 1
push eax
call fcn.1001d2ad
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xd
push 1
push eax
call fcn.1001d2ad
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xa
push 1
push eax
call fcn.1001d2ad
push esi
call fcn.1001cff5
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10010215
mov esp, ebp
pop ebp
ret