Function at 0x70217a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70313ebb
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x7034b250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x120], eax
cmp edi, ebx
jne 0x70217ad3
xor edx, edx
jmp 0x70217b1a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x70217ae6
xor eax, eax
jmp 0x70217b18
lea ebx, [eax + eax]
mov eax, ebx
call fcn.702e98d0
mov esi, esp
test esi, esi
je 0x70217b14
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x70217b16
xor eax, eax
xor ebx, ebx
mov edx, eax
mov eax, edx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], 0
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x70217b30
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.7020c1f0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x28]
mov esi, 0x10
cmp dword [ebp - 0x14], esi
jae 0x70217b56
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x114]
push ecx
call fcn.702165b0
mov byte [ebp - 4], 1
cmp dword [ebp - 0xa0], esi
mov esi, dword [ebp - 0xb4]
jae 0x70217b7b
lea esi, [ebp - 0xb4]
mov edi, dword [ebp - 0x110]
cmp esi, ebx
jne 0x70217ba9
lea esi, [ebp - 0x114]
call fcn.70217d20
cmp dword [ebp - 0x14], 0x10
jb 0x70217ba2
mov edx, dword [ebp - 0x28]
push edx
call fcn.702e1c24
add esp, 4
xor eax, eax
jmp 0x70217cf8
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x70217bb0
sub eax, edx
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
xor eax, eax
call fcn.70219590
cmp eax, 0xffffffff
jne 0x70217bef
lea esi, [ebp - 0x114]
call fcn.70217d20
cmp dword [ebp - 0x14], 0x10
jb 0x70217ba2
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.702e1c24
add esp, 4
xor eax, eax
jmp 0x70217cf8
push 1
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x2c]
inc eax
push ecx
mov byte [ebp - 0x118], 0x2f
call fcn.70219590
cmp eax, 0xffffffff
je 0x70217b85
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 2
mov edx, 0x50
cmp edi, ebx
je 0x70217c2f
mov edx, edi
mov ecx, dword [ebp - 0x28]
mov edi, 0x10
cmp dword [ebp - 0x14], edi
jae 0x70217c3f
lea ecx, [ebp - 0x28]
add ecx, eax
push 0x1388
push ecx
push edx
lea ecx, [ebp - 0x48]
mov edx, esi
call fcn.702184f0
add esp, 0xc
test eax, eax
jne 0x70217c7b
lea ecx, [ebp - 0x48]
call fcn.7020cb20
lea esi, [ebp - 0x114]
call fcn.70217d20
lea ecx, [ebp - 0x2c]
call fcn.7020cb20
xor eax, eax
jmp 0x70217cf8
mov eax, dword [ebp - 0x120]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x70217c59
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x11c], ebx
cmp dword [ebp - 0x30], edi
jae 0x70217cb0
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x34]
push ebx
lea ecx, [ebp - 0x11c]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x11c]
xor eax, eax
cmp ecx, dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
sete al
mov edi, eax
call fcn.7020cb20
lea esi, [ebp - 0x114]
call fcn.70217d20
lea ecx, [ebp - 0x2c]
call fcn.7020cb20
mov eax, edi
lea esp, [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.702e1c2f
mov esp, ebp
pop ebp
ret