Function at 0x4034f0
Capabilities:
Check if file exists
Get file attributes
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x220], edx
lea edi, [ecx + 2]
mov esi, ecx
mov dword [ebp - 0x224], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403520
sub ecx, edi
lea edi, [edx + 2]
sar ecx, 1
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403532
sub edx, edi
sar edx, 1
lea eax, [edx + ecx]
lea eax, [eax*2 + 4]
push eax
call fcn.0041f424
add esp, 4
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x40358b
lea edx, [eax + 0x6d]
mov ecx, 0x44a020
call fcn.0041cc00
mov dword [0x43bbd4], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push 0x436c9c
push esi
call fcn.0041f42f
mov ebx, eax
add esp, 8
add ebx, ebx
xor edi, edi
lea eax, [ebx + esi]
sar ebx, 1
mov dword [ebp - 0x218], eax
test ebx, ebx
jle 0x40360f
lfence
movzx eax, word [esi + edi*2]
push eax
push 0x436cb0
call fcn.0041de51
add esp, 8
test eax, eax
jne 0x4035ce
inc edi
cmp edi, ebx
jl 0x4035b1
jmp 0x40360f
mov ebx, dword [ebp - 0x218]
lfence
push esi
movzx eax, word [ebx]
mov dword [ebp - 0x218], eax
xor eax, eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4035fc
test al, 0x10
jne 0x4035fc
mov eax, 1
jmp 0x4035fe
xor eax, eax
mov ecx, dword [ebp - 0x218]
mov word [ebx], cx
test eax, eax
jne 0x40378c
mov ebx, 0x43a978
mov eax, dword [ebx]
test eax, eax
je 0x40378c
push edi
push eax
push esi
call fcn.0041fe38
add esp, 0xc
test eax, eax
jne 0x40363f
mov eax, dword [ebx]
lea ecx, [edi + edi]
mov dword [ebp - 0x218], ecx
cmp word [ecx + eax], 0
je 0x403644
add ebx, 0xc
jmp 0x403614
mov edi, dword [ebp - 0x21c]
mov ecx, edi
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x403650
mov edx, dword [ebp - 0x220]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403670
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403680
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x218]
mov edi, dword [ebp - 0x21c]
add esi, edi
push str.echo
push dword [ebx]
call fcn.0041f4c2
add esp, 8
test eax, eax
je 0x4036e6
movzx eax, word [esi]
push 8
push eax
call fcn.0041f340
add esp, 8
test eax, eax
je 0x4036e6
nop dword [eax]
movzx eax, word [esi + 2]
add esi, 2
push 8
push eax
call fcn.0041f340
add esp, 8
test eax, eax
jne 0x4036d0
cmp dword [0x43bbd0], 0
jne 0x40373e
cmp dword [0x43be70], 1
je 0x40373e
push 0x104
push 0x44a200
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push edi
push 0x44a200
push 0x436c60
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.00402bb0
add esp, 0x14
mov dword [0x43bbe8], 1
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [ebx + 8]
push esi
call eax
add esp, 4
mov esi, eax
cmp dword [0x43bbd0], 0
jne 0x403770
cmp dword [0x43bbe8], 0
je 0x403770
push 0x44a200
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov dword [0x43bbe8], 0
push edi
call fcn.0041f3e5
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x224]
mov edi, dword [ebp - 0x21c]
mov edx, esi
push dword [ebp - 0x220]
mov ecx, edi
call fcn.00402dc0
push edi
mov esi, eax
call fcn.0041f3e5
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041d22b
mov esp, ebp
pop ebp
ret