Function at 0x4178d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x714f78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
push edi
cmp ecx, 3
je 0x417901
cmp ecx, 2
je 0x417901
cmp ecx, 1
jne 0x417a0b
mov eax, dword [esi + 4]
cmp ecx, 3
jne 0x4179eb
mov edi, dword [ebp + 8]
cmp edi, eax
je 0x417973
cmp eax, 0xffffffff
je 0x417923
push dword [esi]
call fcn.0041a720
add esp, 4
mov eax, dword [esi]
mov dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x417a0b
cmp dword [eax + 0x10], edi
jle 0x417948
push eax
call fcn.0041a900
mov eax, dword [esi]
add esp, 4
cmp dword [eax + 0x10], edi
jge 0x417961
nop word [eax + eax]
push dword [esi]
call fcn.0041a950
mov eax, dword [esi]
add esp, 4
cmp dword [eax + 0x10], edi
jl 0x417950
push dword [esi + 0x138]
push eax
call fcn.0041aad0
add esp, 8
mov dword [esi + 4], edi
lea eax, [ebp - 0x339]
push eax
push dword [ebp + 0x10]
push ebx
push dword [esi]
call fcn.0041adf0
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x41799f
push dword [esi]
call fcn.0041a720
add esp, 4
mov dword [esi + 4], 0xffffffff
cmp byte [ebp - 0x339], 0
jne 0x417a98
test edi, edi
jle 0x4179c8
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060266e
mov esp, ebp
pop ebp
ret 0x10
cmp edi, 0xffffff96
mov eax, 0x5000000
pop edi
mov ecx, 0x1000
pop esi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060266e
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0xffffffff
je 0x4179fa
push dword [esi]
call fcn.0041a720
add esp, 4
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jl 0x417a23
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060266e
mov esp, ebp
pop ebp
ret 0x10
cmp dword [eax + 0x10], edi
jle 0x417a36
push eax
call fcn.0041a900
mov eax, dword [esi]
add esp, 4
cmp dword [eax + 0x10], edi
jge 0x417a49
push dword [esi]
call fcn.0041a950
mov eax, dword [esi]
add esp, 4
cmp dword [eax + 0x10], edi
jl 0x417a38
lea eax, [ebp - 0x338]
mov ecx, esi
push eax
push edi
call fcn.00416ee0
test byte [ebp - 0x230], 0x10
je 0x417aad
cmp dword [ebp + 0x14], 1
je 0x417a98
mov al, byte [ebx]
cmp al, 0x2f
je 0x417a7f
cmp al, 0x5c
je 0x417a7f
test al, al
je 0x417a7b
cmp byte [ebx + 1], 0x3a
je 0x417a7f
xor dl, dl
jmp 0x417a81
mov dl, 1
xor ecx, ecx
lea eax, [esi + 0x140]
test dl, dl
push ebx
cmove ecx, eax
push ecx
call fcn.00416ab0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060266e
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 1
je 0x417ba2
mov al, byte [ebx]
mov edx, ebx
mov ecx, ebx
test al, al
je 0x417ad4
cmp al, 0x2f
je 0x417ac9
cmp al, 0x5c
jne 0x417acc
lea edx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x417ac1
lea edi, [ebp - 0x108]
mov ecx, ebx
sub edi, ebx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x417ae0
cmp edx, ebx
jne 0x417af9
mov byte [ebp - 0x108], al
jmp 0x417b2b
mov eax, edx
sub eax, ebx
cmp eax, 0x104
jae 0x417ca0
mov byte [ebp + eax - 0x108], 0
mov al, byte [ebp - 0x108]
cmp al, 0x2f
je 0x417b51
cmp al, 0x5c
je 0x417b51
test al, al
je 0x417b2b
cmp byte [ebp - 0x107], 0x3a
je 0x417b51
push edx
lea eax, [ebp - 0x108]
push eax
lea edi, [esi + 0x140]
push edi
lea eax, [ebp - 0x20c]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x417b70
push edx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor edi, edi
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.00416ab0
add esp, 8
lea eax, [ebp - 0x20c]
push 0
push dword [ebp - 0x230]
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x417bbf
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060266e
mov esp, ebp
pop ebp
ret 0x10
push dword [esi + 0x138]
push dword [esi]
call fcn.0041aad0
add esp, 8
cmp dword [esi + 0x13c], 0
jne 0x417bf0
push 0x4000
call fcn.00420636
add esp, 4
mov dword [esi + 0x13c], eax
nop dword [eax + eax]
lea eax, [ebp - 0x339]
push eax
push 0x4000
push dword [esi + 0x13c]
push dword [esi]
call fcn.0041adf0
mov edi, eax
add esp, 0x10
cmp edi, 0xffffff96
je 0x417c6f
test edi, edi
js 0x417c41
jle 0x417c34
push 0
lea eax, [ebp - 0x340]
push eax
push edi
push dword [esi + 0x13c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417c48
cmp byte [ebp - 0x339], 0
jne 0x417c4f
test edi, edi
jne 0x417bf0
mov edi, 0x5000000
jmp 0x417c74
mov edi, 0x400
jmp 0x417c74
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor edi, edi
jmp 0x417c74
mov edi, 0x1000
cmp dword [ebp + 0x14], 1
je 0x417c81
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.0041a720
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0060266e
mov esp, ebp
pop ebp
ret 0x10
call fcn.00602d4d
int3