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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2260
call fcn.1010bb90
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.1012bcf0
add esp, 0xc
lea eax, [ebp - 0x418]
push str.C:log_
push 0x104
push eax
call fcn.101410b5
add esp, 0xc
lea eax, [ebp - 0x1238]
push 0x800
push 0
push eax
call fcn.1012bcf0
add esp, 0xc
lea eax, [ebp - 0x418]
push str.WanNengWB
push eax
lea eax, [ebp - 0x620]
push str._s_s.log
push eax
call fcn.1004b380
add esp, 0x10
mov dword [ebp - 0x223c], 0xf
lea ecx, [ebp - 0x2250]
mov dword [ebp - 0x2240], 0
mov byte [ebp - 0x2250], 0
push 0x20
push str.2f533a5b5a808f7486d7c802adeca516
call fcn.10046530
cmp dword [ebp - 0x2240], 0x100
mov eax, dword [ebp - 0x223c]
jbe 0x100e2767
cmp eax, 0x10
jb 0x100e2755
inc eax
lea ecx, [ebp - 0x2250]
push eax
push dword [ebp - 0x2250]
call fcn.10046700
pop eax
pop ecx
push ebp
push edi
pop ecx
push esp
pop edx
pop ebp
pop edx
pop esp
push eax
push ebx
push ebx
push edx
push esp
push edx
jmp 0x100e277f
cmp eax, 0x10
jb 0x100e277f
inc eax
lea ecx, [ebp - 0x2250]
push eax
push dword [ebp - 0x2250]
call fcn.10046700
push 0x208
lea eax, [ebp - 0x828]
push 0
push eax
call fcn.1012bcf0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x208
push 0
push eax
call fcn.1012bcf0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e27d0
sub ecx, edx
sar ecx, 1
je 0x100e29e4
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.1012aca4
xor ecx, ecx
push str.WanNengWB
mov word [eax], cx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0xa30]
push 0x10184440
push eax
call fcn.1004b380
add esp, 0x18
lea eax, [ebp - 0xa30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100e29e4
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e2836
sub ecx, edx
lea eax, [ebp - 0x20e]
sar ecx, 1
lea eax, [eax + ecx*2]
push eax
lea eax, [ebp - 0x828]
push 0x104
push eax
call fcn.101410b5
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x620]
push str._s_s.txt
push eax
call fcn.1004b380
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1238]
push 0x3ff
push 0x400
push eax
call fcn.1003f000
push dword [eax + 4]
push dword [eax]
call fcn.101322c7
push 0
call fcn.1013bee3
add esp, 0x24
mov dword [ebp - 0x2260], eax
lea eax, [ebp - 0x2260]
mov dword [ebp - 0x225c], edx
push eax
call fcn.1013c1af
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test esi, esi
je 0x100e29e4
lea ecx, [ebp - 0x1238]
push ecx
push eax
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
inc eax
push dword [esi + 8]
push dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x2238]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.100e2640
xor eax, eax
add esp, 0x28
mov word [ebp - 0xa3a], ax
xor edi, edi
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x620]
push 0x1018f584
push eax
cmovne edi, ecx
call fcn.1013f64a
mov esi, eax
add esp, 8
test esi, esi
je 0x100e29e4
test edi, edi
jne 0x100e297a
push esi
push 2
lea eax, [ebp - 0x2258]
mov dword [ebp - 0x2258], 0xfeff
push 1
push eax
call fcn.1013f8b0
add esp, 0x10
lea ecx, [ebp - 0x2238]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e2983
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x2238]
push 1
push eax
call fcn.1013f8b0
push esi
push 2
lea eax, [ebp - 0x2254]
mov dword [ebp - 0x2254], 0xd
push 1
push eax
call fcn.1013f8b0
push esi
push 2
lea eax, [ebp - 0x2254]
mov dword [ebp - 0x2254], 0xa
push 1
push eax
call fcn.1013f8b0
push esi
call fcn.1013f97e
add esp, 0x34
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1010a7f2
mov esp, ebp
pop ebp
ret