Function at 0x429421
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4240
call fcn.0044ec50
mov eax, dword [0x47d348]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
inc ecx
mov dword [ebp - 0x4240], esi
push edi
cmp eax, 3
je 0x429463
cmp eax, 2
je 0x42945e
cmp eax, ecx
jne 0x4294fb
cmp eax, 3
jne 0x4294df
mov edi, dword [ebp + 8]
cmp edi, dword [ebx + 4]
je 0x4294aa
cmp dword [ebx + 4], 0xffffffff
je 0x429479
push dword [ebx]
call fcn.0042bc2e
pop ecx
mov eax, dword [ebx]
or dword [ebx + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x4294fb
cmp dword [eax + 0x10], edi
jle 0x42949e
push eax
call fcn.0042bcb9
jmp 0x429498
push dword [ebx]
call fcn.0042bcf8
mov eax, dword [ebx]
pop ecx
cmp dword [eax + 0x10], edi
jl 0x429491
push eax
call fcn.0042be3d
pop ecx
mov dword [ebx + 4], edi
push dword [ebp + 0x10]
push esi
push dword [ebx]
call fcn.0042c0ab
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x4294c8
mov eax, 0x600
jmp 0x429555
push dword [ebx]
call fcn.0042bc2e
or dword [ebx + 4], 0xffffffff
pop ecx
test esi, esi
je 0x429553
mov eax, 0x5000000
jmp 0x429555
cmp dword [ebx + 4], 0xffffffff
je 0x4294ed
push dword [ebx]
call fcn.0042bc2e
pop ecx
mov eax, dword [ebx]
or dword [ebx + 4], 0xffffffff
mov edi, dword [ebp + 8]
cmp edi, dword [eax + 4]
jl 0x429502
mov eax, 0x10000
jmp 0x429555
cmp dword [eax + 0x10], edi
jle 0x42951c
push eax
call fcn.0042bcb9
jmp 0x429516
push dword [ebx]
call fcn.0042bcf8
mov eax, dword [ebx]
pop ecx
cmp dword [eax + 0x10], edi
jl 0x42950f
lea eax, [ebp - 0x4234]
mov ecx, ebx
push eax
push edi
call fcn.00428f36
xor eax, eax
test byte [ebp - 0x412c], 0x10
je 0x429566
inc eax
cmp dword [ebp + 0x14], eax
je 0x429553
lea eax, [ebp - 0x4230]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.00428dc3
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044df71
leave
ret 0x10
cmp dword [ebp + 0x14], 1
mov dword [ebp - 0x423c], eax
je 0x42965e
mov cl, byte [esi]
mov edi, esi
mov edx, esi
test cl, cl
je 0x429645
cmp cl, 0x2f
je 0x42958e
cmp cl, 0x5c
jne 0x429591
lea edi, [edx + 1]
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x429584
cmp edi, esi
je 0x429645
lea eax, [ebp - 0x108]
push esi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
sub edi, esi
dec edi
pop ecx
pop ecx
cmp edi, 0x104
jae 0x42972b
xor eax, eax
mov byte [ebp + edi - 0x108], al
mov cl, byte [ebp - 0x108]
cmp cl, 0x2f
je 0x4295e0
cmp cl, 0x5c
je 0x4295e0
cmp byte [ebp - 0x107], 0x3a
jne 0x4295e3
xor eax, eax
inc eax
mov esi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
mov byte [ebp - 0x4235], al
lea eax, [ebp - 0x108]
push 0x45894c
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x108]
push 0x458950
push eax
call esi
movzx ecx, byte [ebp - 0x4235]
add esp, 0x10
test eax, eax
setne dl
test edi, edi
push 1
pop eax
cmovne ecx, eax
or dl, cl
jne 0x42963d
lea eax, [ebp - 0x108]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.00428dc3
pop ecx
pop ecx
mov esi, dword [ebp - 0x4240]
xor eax, eax
push eax
push dword [ebp - 0x412c]
push 2
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42966d
mov eax, 0x200
jmp 0x429555
push dword [ebx]
call fcn.0042be3d
mov edi, 0x4000
lea eax, [ebp - 0x4108]
push edi
push eax
push dword [ebx]
call fcn.0042c0ab
add esp, 0x10
jmp 0x4296bd
je 0x4296ca
push 0
lea ecx, [ebp - 0x4240]
push ecx
push eax
lea eax, [ebp - 0x4108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4296c1
push edi
lea eax, [ebp - 0x4108]
push eax
push dword [ebx]
call fcn.0042c0ab
add esp, 0xc
test eax, eax
jns 0x42968d
xor eax, eax
inc eax
mov byte [ebp - 0x423c], al
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x4296fd
cmp byte [ebp - 0x423c], 0
jne 0x4296fd
lea eax, [ebp - 0x4118]
push eax
lea eax, [ebp - 0x4128]
push eax
lea eax, [ebp - 0x4120]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
inc eax
cmp dword [ebp + 0x14], eax
je 0x42970c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx]
call fcn.0042bc2e
cmp byte [ebp - 0x423c], 0
pop ecx
je 0x429553
mov eax, 0x400
jmp 0x429555
call fcn.0044e109
int3