Function at 0x4d1f90
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x506380]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.004d4590
mov ecx, eax
call fcn.004d3d30
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004d7e10
push 0
push 0
push 0
push 0
push 0
push str.SogouPYSogouExplorer.exe
lea ecx, [ebp - 0x168]
call fcn.004d7f50
lea eax, [ebp - 0x168]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004d8760
lea ecx, [ebp - 0x168]
call fcn.004d78b0
mov byte [ebp - 9], 1
mov dword [ebp - 4], 0
call fcn.00403a10
push eax
lea ecx, [ebp - 4]
push ecx
push 0xa
push 0xbb
push str.t_resource
call fcn.00403a80
add esp, 4
mov ecx, eax
call fcn.004cedb0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d202b
cmp dword [ebp - 4], 0
jne 0x4d2056
mov ecx, dword [ebp + 0xc]
call fcn.004d7820
movzx edx, al
test edx, edx
je 0x4d2049
mov ecx, dword [ebp + 8]
call fcn.00403040
jmp 0x4d21c8
mov ecx, dword [ebp + 8]
call fcn.00403030
jmp 0x4d21c8
mov ecx, dword [ebp + 0xc]
call fcn.004d7820
movzx eax, al
test eax, eax
je 0x4d2152
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2f], ecx
mov dword [ebp - 0x2b], ecx
mov dword [ebp - 0x27], ecx
mov word [ebp - 0x23], cx
mov byte [ebp - 0x21], cl
mov byte [ebp - 0x20], 0
xor edx, edx
mov dword [ebp - 0x1f], edx
mov dword [ebp - 0x1b], edx
mov dword [ebp - 0x17], edx
mov word [ebp - 0x13], dx
mov byte [ebp - 0x11], dl
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.004cea60
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004cece0
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x4d20ce
mov byte [ebp - 0x31], 0
jmp 0x4d2108
mov dword [ebp - 0x38], 0
jmp 0x4d20e0
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0x10
jge 0x4d20fe
mov edx, dword [ebp - 0x38]
movzx eax, byte [ebp + edx - 0x30]
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ebp + ecx - 0x20]
cmp eax, edx
je 0x4d20fc
jmp 0x4d20fe
jmp 0x4d20d7
cmp dword [ebp - 0x38], 0x10
sete al
mov byte [ebp - 0x31], al
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x4d2116
mov byte [ebp - 9], 0
jmp 0x4d2152
mov ecx, dword [ebp + 0xc]
call fcn.004d7870
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x4d2152
mov edx, dword [ebp - 0x3c]
and edx, 1
je 0x4d2152
mov eax, dword [ebp - 0x3c]
sub eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004d7870
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
movzx edx, byte [ebp - 9]
test edx, edx
je 0x4d21c0
mov dword [ebp - 0x40], 0
push 0x4f8524
mov ecx, dword [ebp + 0xc]
call fcn.004d7870
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041c6ff
add esp, 0xc
test eax, eax
je 0x4d2189
mov ecx, dword [ebp + 8]
call fcn.00403030
jmp 0x4d21c8
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call fcn.0041cd6a
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0041ce63
add esp, 4
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 4]
je 0x4d21c0
mov ecx, dword [ebp + 8]
call fcn.00403030
jmp 0x4d21c8
mov ecx, dword [ebp + 8]
call fcn.00403040
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a0cf
mov esp, ebp
pop ebp
ret