Function at 0x417a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x71cf78]
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 0x417a81
cmp ecx, 2
je 0x417a81
cmp ecx, 1
jne 0x417b8b
mov eax, dword [esi + 4]
cmp ecx, 3
jne 0x417b6b
mov edi, dword [ebp + 8]
cmp edi, eax
je 0x417af3
cmp eax, 0xffffffff
je 0x417aa3
push dword [esi]
call fcn.0041a8a0
add esp, 4
mov eax, dword [esi]
mov dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x417b8b
cmp dword [eax + 0x10], edi
jle 0x417ac8
push eax
call fcn.0041aa80
mov eax, dword [esi]
add esp, 4
cmp dword [eax + 0x10], edi
jge 0x417ae1
nop word [eax + eax]
push dword [esi]
call fcn.0041aad0
mov eax, dword [esi]
add esp, 4
cmp dword [eax + 0x10], edi
jl 0x417ad0
push dword [esi + 0x138]
push eax
call fcn.0041ac50
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.0041af70
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x417b1f
push dword [esi]
call fcn.0041a8a0
add esp, 4
mov dword [esi + 4], 0xffffffff
cmp byte [ebp - 0x339], 0
jne 0x417c18
test edi, edi
jle 0x417b48
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006027d7
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.006027d7
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0xffffffff
je 0x417b7a
push dword [esi]
call fcn.0041a8a0
add esp, 4
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jl 0x417ba3
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006027d7
mov esp, ebp
pop ebp
ret 0x10
cmp dword [eax + 0x10], edi
jle 0x417bb6
push eax
call fcn.0041aa80
mov eax, dword [esi]
add esp, 4
cmp dword [eax + 0x10], edi
jge 0x417bc9
push dword [esi]
call fcn.0041aad0
mov eax, dword [esi]
add esp, 4
cmp dword [eax + 0x10], edi
jl 0x417bb8
lea eax, [ebp - 0x338]
mov ecx, esi
push eax
push edi
call fcn.00417060
test byte [ebp - 0x230], 0x10
je 0x417c2d
cmp dword [ebp + 0x14], 1
je 0x417c18
mov al, byte [ebx]
cmp al, 0x2f
je 0x417bff
cmp al, 0x5c
je 0x417bff
test al, al
je 0x417bfb
cmp byte [ebx + 1], 0x3a
je 0x417bff
xor dl, dl
jmp 0x417c01
mov dl, 1
xor ecx, ecx
lea eax, [esi + 0x140]
test dl, dl
push ebx
cmove ecx, eax
push ecx
call fcn.00416c30
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006027d7
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 1
je 0x417d22
mov al, byte [ebx]
mov edx, ebx
mov ecx, ebx
test al, al
je 0x417c54
cmp al, 0x2f
je 0x417c49
cmp al, 0x5c
jne 0x417c4c
lea edx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x417c41
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 0x417c60
cmp edx, ebx
jne 0x417c79
mov byte [ebp - 0x108], al
jmp 0x417cab
mov eax, edx
sub eax, ebx
cmp eax, 0x104
jae 0x417e20
mov byte [ebp + eax - 0x108], 0
mov al, byte [ebp - 0x108]
cmp al, 0x2f
je 0x417cd1
cmp al, 0x5c
je 0x417cd1
test al, al
je 0x417cab
cmp byte [ebp - 0x107], 0x3a
je 0x417cd1
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 0x417cf0
push edx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x693be0
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.00416c30
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 0x417d3f
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006027d7
mov esp, ebp
pop ebp
ret 0x10
push dword [esi + 0x138]
push dword [esi]
call fcn.0041ac50
add esp, 8
cmp dword [esi + 0x13c], 0
jne 0x417d70
push 0x4000
call fcn.004207c8
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.0041af70
mov edi, eax
add esp, 0x10
cmp edi, 0xffffff96
je 0x417def
test edi, edi
js 0x417dc1
jle 0x417db4
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 0x417dc8
cmp byte [ebp - 0x339], 0
jne 0x417dcf
test edi, edi
jne 0x417d70
mov edi, 0x5000000
jmp 0x417df4
mov edi, 0x400
jmp 0x417df4
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 0x417df4
mov edi, 0x1000
cmp dword [ebp + 0x14], 1
je 0x417e01
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.0041a8a0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.006027d7
mov esp, ebp
pop ebp
ret 0x10
call fcn.00602ebd
int3