Function at 0x437ae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x38]
add eax, 4
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
test eax, eax
jne 0x437b0b
mov eax, 3
jmp 0x437cd1
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
add ecx, 4
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x437b44
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
call main
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x437b44
mov eax, dword [ebp - 0xc]
jmp 0x437cd1
mov dword [ebp - 8], 0
mov edx, dword [ebp + 0x14]
movzx eax, byte [edx]
test eax, eax
je 0x437ca2
cmp dword [ebp - 4], 0
je 0x437ca2
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x38]
call main
test eax, eax
jne 0x437b92
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x437c83
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call main
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x437bce
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call main
add esp, 4
xor eax, eax
jmp 0x437cd1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.kernel32.dll_lstrlenW]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x24]
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call main
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call main
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call main
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call main
mov ecx, dword [ebp - 0x38]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x446eb0
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call main
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call main
add esp, 4
jmp 0x437ca0
mov edx, dword [ebp - 0x38]
add edx, 4
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x446ec0
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringW]
mov dword [ebp - 8], eax
jmp 0x437cbf
mov edx, dword [ebp - 0x38]
add edx, 4
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x446ed0
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x437cce
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10