Function at 0x419a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x424c
call fcn.004305d0
mov eax, dword [0x4433ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
or esi, 0xffffffff
push edi
mov dword [ebp - 0x4244], ebx
mov dword [ebp - 0x4248], eax
cmp dword [ebx + 4], esi
je 0x419a7a
mov edi, dword [ebx]
call fcn.004191d0
mov edi, dword [ebp + 8]
mov dword [ebx + 4], esi
mov esi, dword [ebx]
cmp edi, dword [esi + 4]
jl 0x419a9f
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b499
mov esp, ebp
pop ebp
ret 8
cmp edi, dword [esi + 0x10]
jge 0x419aa9
call fcn.00418c40
mov ecx, dword [ebx]
cmp dword [ecx + 0x10], edi
jge 0x419afd
mov esi, dword [ebx]
test esi, esi
je 0x419af6
cmp dword [esi + 0x18], 0
je 0x419af6
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x419af6
mov edx, dword [esi + 0x50]
add edx, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
push 0
mov dword [esi + 0x10], eax
lea edx, [edx + ecx + 0x2e]
add dword [esi + 0x14], edx
push 0
lea eax, [esi + 0x78]
push eax
lea ecx, [esi + 0x28]
push ecx
mov eax, esi
call fcn.00418840
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov edx, dword [ebx]
cmp dword [edx + 0x10], edi
jl 0x419ab0
push edi
lea edx, [ebp - 0x4240]
mov ecx, ebx
call fcn.00419310
test byte [ebp - 0x4138], 0x10
je 0x419b3f
lea eax, [ebp - 0x423c]
push eax
add ebx, 0x138
push ebx
call fcn.00419970
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b499
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0x4248]
mov al, byte [edi]
mov esi, edi
mov ecx, edi
test al, al
je 0x419c00
cmp al, 0x2f
je 0x419b5b
cmp al, 0x5c
jne 0x419b5e
lea esi, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x419b53
cmp esi, edi
je 0x419c00
lea edx, [ebp - 0x110]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x419b78
sub esi, edi
mov byte [ebp + esi - 0x111], cl
mov al, byte [ebp - 0x110]
cmp al, 0x2f
je 0x419ba6
cmp al, 0x5c
je 0x419ba6
cmp byte [ebp - 0x10f], 0x3a
je 0x419ba6
xor bl, bl
jmp 0x419ba8
mov bl, 1
lea ecx, [ebp - 0x110]
push 0x43e1e4
push ecx
call fcn.0041c82d
lea edx, [ebp - 0x110]
push 0x43e1e8
push edx
mov esi, eax
call fcn.0041c82d
add esp, 0x10
test eax, eax
setne al
test esi, esi
setne cl
or al, cl
or al, bl
jne 0x419bfa
mov eax, dword [ebp - 0x4244]
lea edx, [ebp - 0x110]
push edx
add eax, 0x138
push eax
call fcn.00419970
add esp, 8
mov ebx, dword [ebp - 0x4244]
mov ecx, dword [ebp - 0x4138]
push 0
push ecx
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x419c3a
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b499
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebx]
call fcn.00418f30
mov edi, dword [ebp - 0x4244]
mov eax, dword [edi]
lea edx, [ebp - 0x4110]
push edx
mov ecx, 0x4000
xor bl, bl
call fcn.00419040
add esp, 4
test eax, eax
js 0x419c9b
je 0x419c9d
push 0
lea ecx, [ebp - 0x4248]
push ecx
push eax
lea edx, [ebp - 0x4110]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419c9b
lea eax, [ebp - 0x4110]
push eax
mov eax, dword [edi]
mov ecx, 0x4000
call fcn.00419040
add esp, 4
test eax, eax
jns 0x419c63
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x419cc9
test bl, bl
jne 0x419cc9
lea ecx, [ebp - 0x4124]
push ecx
lea edx, [ebp - 0x4134]
push edx
lea eax, [ebp - 0x412c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
call fcn.004191d0
mov ecx, dword [ebp - 4]
movzx eax, bl
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
and eax, 0x400
pop ebx
call fcn.0041b499
mov esp, ebp
pop ebp
ret 8