Function at 0x4377d0
Capabilities:
Check if file exists
Get file attributes
Get system information on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48af32
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov bl, byte [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x14]
mov byte [ebp - 0x440], al
test bl, bl
je 0x4378a2
push 0x4a2df0
push 0x49d59c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x437846
lea ecx, [ebp - 0x468]
push ecx
call eax
jmp 0x437853
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x468]
cmp eax, 6
je 0x43789d
cmp eax, 9
je 0x437896
push eax
lea eax, [ebp - 0x218]
push 0x4a2e08
push eax
call fcn.00401fc0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x10
push 0x49794c
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x437b12
mov esi, 0x51c
jmp 0x4378a2
mov esi, 0x51d
push edi
call fcn.0046b670
push eax
push edi
call fcn.0046b800
add esp, 0xc
mov dword [ebp - 0x428], eax
push 0x103
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x437af8
test bl, bl
je 0x437a14
lea eax, [ebp - 0x218]
push eax
call fcn.0046b670
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0046b800
mov dword [ebp - 0x434], eax
push 0x4a2e6c
mov byte [ebp - 4], 1
call fcn.0046b670
push eax
push 0x4a2e6c
call fcn.0046b800
mov dword [ebp - 0x42c], eax
push 0x4a2e48
mov byte [ebp - 4], 2
call fcn.0046b670
push eax
push 0x4a2e48
call fcn.0046b800
add esp, 0x24
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x430]
call fcn.0046b3d0
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.0046b3d0
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 5
call fcn.0046b4b0
mov ecx, dword [ebp - 0x438]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x43799c
call fcn.0046b840
mov ecx, dword [ebp - 0x444]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4379af
call fcn.0046b840
mov ecx, dword [ebp - 0x430]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4379c2
call fcn.0046b840
mov ecx, dword [ebp - 0x42c]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x4379d5
call fcn.0046b840
mov ecx, dword [ebp - 0x434]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4379e8
call fcn.0046b840
lea eax, [ebp - 0x218]
push 0x2e
push eax
call fcn.00472b95
xor ecx, ecx
push 0x4a2e70
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call fcn.00474398
add esp, 0x14
test esi, esi
je 0x437a90
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x4a2e80
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00472b95
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00474398
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00470605
lea eax, [ebp - 0x218]
push eax
movzx eax, si
push eax
call fcn.0040ef30
add esp, 0x28
test al, al
jne 0x437a90
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x437af8
lea eax, [ebp - 0x421]
mov byte [ebp - 0x421], 0
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
call fcn.0046b310
push eax
push dword [ebp - 0x440]
push dword [ebp - 0x43c]
call fcn.00437b30
mov esi, eax
add esp, 0x14
test esi, esi
je 0x437adb
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x437aec
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x421], 0
sete bl
jmp 0x437afa
xor bl, bl
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x437b10
call fcn.0046b840
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret