Function at 0x10001750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100154f8
push 0x10004610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edx, edx
mov dword [ebp - 0x1c], edx
xor esi, esi
mov ax, word [0x1001a108]
mov word [ebp - 0x124], ax
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x122]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 1
mov dword [ebp - 4], edx
jmp 0x100017aa
xor edx, edx
mov dword [ebp - 0x234], edx
mov ecx, dword [str._r_n_r_n]
mov dword [ebp - 0x840], ecx
mov al, byte [0x1001a104]
mov byte [ebp - 0x83c], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x83b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp esi, edx
jne 0x100017e6
mov esi, dword [ebp + 8]
mov dword [ebp - 0x128], esi
lea ecx, [ebp - 0x840]
push ecx
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov dword [ebp - 0x234], eax
test eax, eax
je 0x10001b45
mov dl, byte [0x1001e560]
mov byte [ebp - 0x738], dl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x737]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x234]
sub ecx, esi
mov dword [ebp - 0x73c], ecx
lea edi, [ebp - 0x738]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x338], dl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x337]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x338]
push ecx
lea edx, [ebp - 0x738]
push edx
call fcn.100016b0
lea eax, [ebp - 0x338]
push eax
call fcn.10001410
add esp, 0xc
test eax, eax
je 0x10001b24
mov dword [ebp - 0x1c], 1
mov cl, byte [0x1001e560]
mov byte [ebp - 0x948], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x947]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
push 0x1001a0fc
push 0x104
lea edx, [ebp - 0x124]
push edx
call fcn.10002330
add esp, 0x10
push ebx
push str.MsgRecoverItem__d_:
push 0x104
lea eax, [ebp - 0x948]
push eax
call fcn.10002330
add esp, 0x10
mov cl, byte [0x1001e560]
mov byte [ebp - 0xd48], cl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xd47]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov dword [ebp - 0xd50], edi
mov eax, 0x104
mov dword [ebp - 0xd64], eax
lea ecx, [ebp - 0xd48]
mov dword [ebp - 0xd60], ecx
xor edx, edx
mov dword [ebp - 0xd5c], edx
mov esi, eax
mov dword [ebp - 0xd58], esi
test eax, eax
je 0x10001947
cmp byte [ecx], 0
je 0x10001943
inc ecx
mov dword [ebp - 0xd60], ecx
dec eax
mov dword [ebp - 0xd64], eax
jmp 0x1000192a
test eax, eax
jne 0x10001952
mov edx, 0x80070057
mov dword [ebp - 0xd5c], edx
test edx, edx
jl 0x1000196a
lea ecx, [ebp - 0xd50]
test ecx, ecx
je 0x1000196a
sub esi, eax
mov edi, esi
mov dword [ebp - 0xd50], edi
mov eax, edx
mov dword [ebp - 0xd54], eax
test edx, edx
jl 0x10001998
lea edx, [ebp - 0x948]
push edx
mov eax, 0x104
sub eax, edi
push eax
lea ecx, [ebp + edi - 0xd48]
push ecx
call fcn.100023a0
mov dword [ebp - 0xd54], eax
mov dword [ebp - 0xd4c], eax
xor edi, edi
mov dword [ebp - 0xd6c], edi
mov eax, 0x400
mov dword [ebp - 0xd80], eax
lea ecx, [ebp - 0xd48]
mov dword [ebp - 0xd7c], ecx
xor edx, edx
mov dword [ebp - 0xd78], edx
mov esi, eax
mov dword [ebp - 0xd74], esi
test eax, eax
je 0x100019ea
cmp byte [ecx], 0
je 0x100019e6
inc ecx
mov dword [ebp - 0xd7c], ecx
dec eax
mov dword [ebp - 0xd80], eax
jmp 0x100019cd
test eax, eax
jne 0x100019f5
mov edx, 0x80070057
mov dword [ebp - 0xd78], edx
test edx, edx
jl 0x10001a0d
lea ecx, [ebp - 0xd6c]
test ecx, ecx
je 0x10001a0d
sub esi, eax
mov edi, esi
mov dword [ebp - 0xd6c], edi
mov eax, edx
mov dword [ebp - 0xd70], eax
test edx, edx
jl 0x10001a3b
lea edx, [ebp - 0x738]
push edx
mov eax, 0x400
sub eax, edi
push eax
lea ecx, [ebp + edi - 0xd48]
push ecx
call fcn.100023a0
mov dword [ebp - 0xd70], eax
mov dword [ebp - 0xd68], eax
xor esi, esi
mov dword [ebp - 0xd88], esi
mov eax, 0x104
mov dword [ebp - 0xd9c], eax
lea ecx, [ebp - 0xd48]
mov dword [ebp - 0xd98], ecx
xor edx, edx
mov dword [ebp - 0xd94], edx
mov edi, eax
mov dword [ebp - 0xd90], edi
test eax, eax
je 0x10001a8d
cmp byte [ecx], 0
je 0x10001a89
inc ecx
mov dword [ebp - 0xd98], ecx
dec eax
mov dword [ebp - 0xd9c], eax
jmp 0x10001a70
test eax, eax
jne 0x10001a98
mov edx, 0x80070057
mov dword [ebp - 0xd94], edx
test edx, edx
jl 0x10001ab0
lea ecx, [ebp - 0xd88]
test ecx, ecx
je 0x10001ab0
sub edi, eax
mov esi, edi
mov dword [ebp - 0xd88], esi
mov eax, edx
mov dword [ebp - 0xd8c], eax
test edx, edx
jl 0x10001adc
push str._r_n_r_n
mov edx, 0x104
sub edx, esi
push edx
lea eax, [ebp + esi - 0xd48]
push eax
call fcn.100023a0
mov dword [ebp - 0xd8c], eax
mov dword [ebp - 0xd84], eax
push 2
push 0
push 0
mov ecx, dword [0x1001e55c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x844]
push edx
lea eax, [ebp - 0xd48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0xd48]
push ecx
mov edx, dword [0x1001e55c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, dword [ebp - 0x234]
mov dword [ebp - 0x128], esi
jne 0x100017a8
mov cl, byte [0x1001e560]
mov byte [ebp - 0x230], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x124]
push edx
push str.Msgicount_s_r_n_r_n
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.10002330
add esp, 0x10
push 2
push 0
push 0
mov ecx, dword [0x1001e55c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [0x1001e55c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10001cc2
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xdb0], edx
mov esi, 0x104
mov dword [ebp - 0xdac], esi
mov eax, 0x1001e448
mov dword [ebp - 0xda8], eax
xor edi, edi
mov dword [ebp - 0xda4], edi
test esi, esi
je 0x10001c1a
mov cl, byte [edx]
test cl, cl
je 0x10001c16
mov byte [eax], cl
inc eax
mov dword [ebp - 0xda8], eax
inc edx
mov dword [ebp - 0xdb0], edx
dec esi
mov dword [ebp - 0xdac], esi
jmp 0x10001bf3
test esi, esi
jne 0x10001c2c
dec eax
mov dword [ebp - 0xda8], eax
mov edi, 0x8007007a
mov dword [ebp - 0xda4], edi
mov byte [eax], 0
mov dword [ebp - 0xda0], edi
mov edi, dword [0x1001e554]
mov dword [ebp - 0xdbc], edi
mov dword [ebp - 0xdb4], edi
mov dword [ebp - 0xdd8], edi
mov dword [ebp - 0xdc0], edi
mov ebx, dword [edi + 4]
mov dword [ebp - 0xdd0], ebx
mov eax, 0x10c
mov dword [ebp - 0xdcc], eax
mov dword [ebp - 0xdc8], eax
push eax
call fcn.1000efe0
add esp, 4
mov esi, eax
mov dword [ebp - 0xdc4], esi
test edi, edi
mov eax, edi
jne 0x10001c86
mov eax, esi
mov dword [esi], eax
test ebx, ebx
jne 0x10001c8e
mov ebx, esi
mov dword [esi + 4], ebx
mov dword [edi + 4], esi
mov dword [ebp - 0xdc0], esi
mov eax, dword [esi + 4]
mov dword [ebp - 0xdd4], eax
mov dword [eax], esi
push 0x1001e448
lea eax, [esi + 8]
push eax
call fcn.100022d0
add esp, 8
inc dword [0x1001e558]
mov dword [ebp - 0xdb8], esi
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret