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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2260
call fcn.1010b250
mov eax, dword [0x101b90ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.1012b3b0
add esp, 0xc
lea eax, [ebp - 0x418]
push str.C:log_
push 0x104
push eax
call fcn.101407e5
add esp, 0xc
lea eax, [ebp - 0x1238]
push 0x800
push 0
push eax
call fcn.1012b3b0
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.1004b2d0
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.10046480
cmp dword [ebp - 0x2240], 0x100
mov eax, dword [ebp - 0x223c]
jbe 0x100e1eb7
cmp eax, 0x10
jb 0x100e1ea5
inc eax
lea ecx, [ebp - 0x2250]
push eax
push dword [ebp - 0x2250]
call fcn.10046650
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 0x100e1ecf
cmp eax, 0x10
jb 0x100e1ecf
inc eax
lea ecx, [ebp - 0x2250]
push eax
push dword [ebp - 0x2250]
call fcn.10046650
push 0x208
lea eax, [ebp - 0x828]
push 0
push eax
call fcn.1012b3b0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x208
push 0
push eax
call fcn.1012b3b0
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 0x100e1f20
sub ecx, edx
sar ecx, 1
je 0x100e2134
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.1012a364
xor ecx, ecx
push str.WanNengWB
mov word [eax], cx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0xa30]
push 0x10183440
push eax
call fcn.1004b2d0
add esp, 0x18
lea eax, [ebp - 0xa30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100e2134
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e1f86
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.101407e5
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.1004b2d0
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.1003eff0
push dword [eax + 4]
push dword [eax]
call fcn.10131938
push 0
call fcn.1013b637
add esp, 0x24
mov dword [ebp - 0x2260], eax
lea eax, [ebp - 0x2260]
mov dword [ebp - 0x225c], edx
push eax
call fcn.1013b903
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test esi, esi
je 0x100e2134
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.100e1d90
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 0x1018e574
push eax
cmovne edi, ecx
call fcn.1013ed7a
mov esi, eax
add esp, 8
test esi, esi
je 0x100e2134
test edi, edi
jne 0x100e20ca
push esi
push 2
lea eax, [ebp - 0x2258]
mov dword [ebp - 0x2258], 0xfeff
push 1
push eax
call fcn.1013efe0
add esp, 0x10
lea ecx, [ebp - 0x2238]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e20d3
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x2238]
push 1
push eax
call fcn.1013efe0
push esi
push 2
lea eax, [ebp - 0x2254]
mov dword [ebp - 0x2254], 0xd
push 1
push eax
call fcn.1013efe0
push esi
push 2
lea eax, [ebp - 0x2254]
mov dword [ebp - 0x2254], 0xa
push 1
push eax
call fcn.1013efe0
push esi
call fcn.1013f0ae
add esp, 0x34
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10109ec2
mov esp, ebp
pop ebp
ret