Function at 0x437e80
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x485af9
mov eax, dword fs:[0]
push eax
sub esp, 0x160
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49e058]
xor eax, esp
push eax
lea eax, [esp + 0x174]
mov dword fs:[0], eax
mov edi, ecx
push 1
xor ebx, ebx
push 2
lea ecx, [esp + 0xfc]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1f], bl
call fcn.00407f10
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x184], ebx
call fcn.00437cf0
push str.Global.db
push eax
lea ecx, [esp + 0xfc]
push ecx
mov byte [esp + 0x188], 1
call fcn.00407c90
add esp, 8
push eax
call fcn.00425df0
mov ebp, 0x10
add esp, 8
cmp dword [esp + 0x34], ebp
mov byte [esp + 0x17c], bl
jb 0x437f23
mov edx, dword [esp + 0x20]
push edx
call fcn.0044d7d9
add esp, 4
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xf8]
call fcn.004056e0
cmp dword [eax + 0x18], ebp
jb 0x437f3e
mov eax, dword [eax + 4]
jmp 0x437f41
add eax, 4
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [esp + 0x70], ebp
mov esi, eax
jb 0x437f69
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0044d7d9
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], 0
jne 0x438234
push 1
push 2
lea ecx, [esp + 0x7c]
call fcn.00407f10
push 1
lea edx, [esp + 0x20]
push edx
mov ecx, edi
mov byte [esp + 0x184], 2
call fcn.00437cf0
push str.Global.db
push eax
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x188], 3
call fcn.00407c90
add esp, 8
push eax
call fcn.00425df0
add esp, 8
cmp dword [esp + 0x34], ebp
mov byte [esp + 0x17c], 2
jb 0x437fe5
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0044d7d9
add esp, 4
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0xf8]
call fcn.004056e0
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x17c], 4
mov dword [esp + 0x18], 1
jb 0x438010
mov eax, dword [eax + 4]
jmp 0x438013
add eax, 4
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x43802e
cmp byte [eax], 0
je 0x43802e
push eax
call esi
cmp eax, 0xffffffff
je 0x43802e
test al, 0x10
je 0x43806a
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x78]
call fcn.004056e0
cmp dword [eax + 0x18], ebp
mov dword [esp + 0x18], 3
jb 0x43804e
mov eax, dword [eax + 4]
jmp 0x438051
add eax, 4
cmp eax, ebx
je 0x43806a
cmp byte [eax], 0
je 0x43806a
push eax
call esi
cmp eax, 0xffffffff
je 0x43806a
test al, 0x10
jne 0x43806a
mov bl, 1
jmp 0x43806c
xor bl, bl
test byte [esp + 0x18], 2
je 0x4380a0
and dword [esp + 0x18], 0xfffffffd
cmp dword [esp + 0x34], ebp
jb 0x43808b
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0044d7d9
add esp, 4
xor edi, edi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
jmp 0x4380a2
xor edi, edi
test byte [esp + 0x18], 1
mov dword [esp + 0x17c], 2
je 0x4380c7
cmp dword [esp + 0x54], ebp
jb 0x4380c7
mov edx, dword [esp + 0x40]
push edx
call fcn.0044d7d9
add esp, 4
test bl, bl
je 0x4381aa
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xf8]
call fcn.004056e0
mov esi, eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0x180], 5
call fcn.004056e0
cmp dword [esi + 0x18], ebp
jb 0x438102
mov esi, dword [esi + 4]
jmp 0x438105
add esi, 4
cmp dword [eax + 0x18], ebp
jb 0x43810f
mov eax, dword [eax + 4]
jmp 0x438112
add eax, 4
cmp eax, edi
je 0x43812c
cmp esi, edi
je 0x43812c
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, 1
sete bl
jmp 0x43812e
xor bl, bl
cmp dword [esp + 0x34], ebp
jb 0x438141
mov edx, dword [esp + 0x20]
push edx
call fcn.0044d7d9
add esp, 4
cmp dword [esp + 0x54], ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
mov byte [esp + 0x17c], 2
jb 0x43816d
mov eax, dword [esp + 0x40]
push eax
call fcn.0044d7d9
add esp, 4
test bl, bl
je 0x4381aa
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x78]
call fcn.004056e0
cmp dword [eax + 0x18], ebp
jb 0x438189
mov eax, dword [eax + 4]
jmp 0x43818c
add eax, 4
cmp eax, edi
je 0x438197
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x54], ebp
jb 0x4381aa
mov edx, dword [esp + 0x40]
push edx
call fcn.0044d7d9
add esp, 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x78]
call fcn.004056e0
cmp dword [eax + 0x18], ebp
jb 0x4381c2
mov eax, dword [eax + 4]
jmp 0x4381c5
add eax, 4
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [esp + 0x34], ebp
mov esi, eax
jb 0x4381ed
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0044d7d9
add esp, 4
lea ecx, [esp + 0xc0]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
mov byte [esp + 0x17c], 0
call fcn.00403a70
lea edx, [esp + 0xc0]
push edx
mov dword [esp + 0xc4], 0x48afa8
call fcn.0046df42
add esp, 4
cmp esi, 0xffffffff
je 0x43826c
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
jne 0x438265
mov ecx, dword [esp + 0x184]
push ebx
lea eax, [esp + 0x3c]
push eax
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x438265
cmp dword [esp + 0x38], ebp
jne 0x438265
mov byte [esp + 0x17], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x140]
mov dword [esp + 0x17c], 0xffffffff
call fcn.00403a70
lea edx, [esp + 0x140]
push edx
mov dword [esp + 0x144], 0x48afa8
call fcn.0046df42
mov al, byte [esp + 0x1b]
add esp, 4
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 4