Function at 0x41dca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x75f140]
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 0x41dd0c
cmp ecx, 2
je 0x41dd0c
cmp ecx, 1
jne 0x41dcf4
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41dcdf
push dword [esi]
call fcn.00420c30
add esp, 4
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jl 0x41ddea
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00609c1d
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 4]
cmp ecx, 3
jne 0x41dcd0
mov edi, dword [ebp + 8]
cmp edi, eax
je 0x41dd72
cmp eax, 0xffffffff
je 0x41dd2a
push dword [esi]
call fcn.00420c30
add esp, 4
mov eax, dword [esi]
mov dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x41dcf4
cmp edi, dword [eax + 0x10]
jge 0x41dd46
push eax
call fcn.00420e20
add esp, 4
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jge 0x41dd60
nop dword [eax]
push eax
call fcn.00420e70
mov eax, dword [esi]
add esp, 4
cmp dword [eax + 0x10], edi
jl 0x41dd50
push dword [esi + 0x138]
push eax
call fcn.00420ff0
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.00421310
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x41dd9e
push dword [esi]
call fcn.00420c30
add esp, 4
mov dword [esi + 4], 0xffffffff
cmp byte [ebp - 0x339], 0
jne 0x41de5f
test edi, edi
jle 0x41ddc7
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00609c1d
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.00609c1d
mov esp, ebp
pop ebp
ret 0x10
cmp edi, dword [eax + 0x10]
jge 0x41ddf8
push eax
call fcn.00420e20
add esp, 4
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jge 0x41de10
nop
push eax
call fcn.00420e70
mov eax, dword [esi]
add esp, 4
cmp dword [eax + 0x10], edi
jl 0x41de00
lea eax, [ebp - 0x338]
mov ecx, esi
push eax
push edi
call fcn.0041d2b0
test byte [ebp - 0x230], 0x10
je 0x41de74
cmp dword [ebp + 0x14], 1
je 0x41de5f
mov al, byte [ebx]
cmp al, 0x2f
je 0x41de46
cmp al, 0x5c
je 0x41de46
test al, al
je 0x41de42
cmp byte [ebx + 1], 0x3a
je 0x41de46
xor dl, dl
jmp 0x41de48
mov dl, 1
xor ecx, ecx
lea eax, [esi + 0x140]
test dl, dl
push ebx
cmove ecx, eax
push ecx
call fcn.0041ce70
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00609c1d
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 1
je 0x41df72
mov cl, byte [ebx]
mov edx, ebx
mov eax, ebx
test cl, cl
je 0x41dea0
cmp cl, 0x2f
je 0x41de95
cmp cl, 0x5c
je 0x41de95
inc eax
jmp 0x41de9a
lea edx, [eax + 1]
mov eax, edx
mov cl, byte [eax]
test cl, cl
jne 0x41de88
lea edi, [ebp - 0x108]
mov ecx, ebx
sub edi, ebx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x41deb0
cmp edx, ebx
jne 0x41dec9
mov byte [ebp - 0x108], al
jmp 0x41defb
mov eax, edx
sub eax, ebx
cmp eax, 0x104
jae 0x41e070
mov byte [ebp + eax - 0x108], 0
mov al, byte [ebp - 0x108]
cmp al, 0x2f
je 0x41df21
cmp al, 0x5c
je 0x41df21
test al, al
je 0x41defb
cmp byte [ebp - 0x107], 0x3a
je 0x41df21
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 0x41df40
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.0041ce70
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 0x41df8f
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00609c1d
mov esp, ebp
pop ebp
ret 0x10
push dword [esi + 0x138]
push dword [esi]
call fcn.00420ff0
add esp, 8
cmp dword [esi + 0x13c], 0
jne 0x41dfc0
push 0x4000
call fcn.00436654
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.00421310
mov edi, eax
add esp, 0x10
cmp edi, 0xffffff96
je 0x41e03f
test edi, edi
js 0x41e011
jle 0x41e004
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 0x41e018
cmp byte [ebp - 0x339], 0
jne 0x41e01f
test edi, edi
jne 0x41dfc0
mov edi, 0x5000000
jmp 0x41e044
mov edi, 0x400
jmp 0x41e044
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 0x41e044
mov edi, 0x1000
cmp dword [ebp + 0x14], 1
je 0x41e051
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.00420c30
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00609c1d
mov esp, ebp
pop ebp
ret 0x10
call fcn.0060a2fd
int3