Function at 0x4157c0
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7814
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x364
mov eax, dword [0x57aa54]
xor eax, ebp
mov dword [ebp - 0x64], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c8], ecx
mov eax, dword [ebp - 0x2c8]
mov dword [eax + 0x24], 4
push 0x4c16a4
lea ecx, [ebp - 0x270]
call fcn.004038f0
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2d0]
push edx
mov eax, dword [ebp - 0x2c8]
add eax, 8
push eax
lea ecx, [ebp - 0x274]
push ecx
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x2d4], eax
mov edx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2d8]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004032e0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x274]
call fcn.00403970
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x270]
call fcn.00403970
push str.MPR500_Pro_5_
lea ecx, [ebp - 0x278]
call fcn.004038f0
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x2e0], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2e0]
push ecx
mov edx, dword [ebp - 0x2c8]
add edx, 8
push edx
lea eax, [ebp - 0x27c]
push eax
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x2e4], eax
mov ecx, dword [ebp - 0x2e4]
mov dword [ebp - 0x2e8], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004032e0
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x27c]
call fcn.00403970
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x278]
call fcn.00403970
push 0x4c16e4
mov ecx, dword [ebp - 0x2c8]
add ecx, 0x20
call fcn.004039b0
lea ecx, [ebp - 0x50]
call fcn.00417670
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x34]
call fcn.00417670
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xc
push 0
push 0x4020
lea ecx, [ebp - 0x18]
call fcn.0040ca60
push eax
lea ecx, [ebp - 0x50]
call fcn.00417730
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 0
jne 0x415a52
push str.Error_reading
lea ecx, [ebp - 0x280]
call fcn.004038f0
mov dword [ebp - 0x2f0], eax
mov edx, dword [ebp - 0x2f0]
mov dword [ebp - 0x2f4], edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2f4]
push ecx
lea edx, [ebp - 0x284]
push edx
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x2fc], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x2fc]
push ecx
mov ecx, dword [ebp - 0x2c8]
add ecx, 0x20
call fcn.00403990
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x284]
call fcn.00403970
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x280]
call fcn.00403970
mov byte [ebp - 0x285], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x34]
call fcn.00403070
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
call fcn.00403070
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403970
mov al, byte [ebp - 0x285]
jmp 0x416084
push 0
mov edx, dword [0x4c1a10]
or edx, 1
or edx, 0x4000
or edx, 0x1000
push edx
lea ecx, [ebp - 0x14]
call fcn.0040ca60
push eax
lea ecx, [ebp - 0x34]
call fcn.00417730
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
jne 0x415b5c
push str.Error_writing
lea ecx, [ebp - 0x28c]
call fcn.004038f0
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x308], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x308]
push edx
lea eax, [ebp - 0x290]
push eax
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x30c], eax
mov ecx, dword [ebp - 0x30c]
mov dword [ebp - 0x310], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x310]
push edx
mov ecx, dword [ebp - 0x2c8]
add ecx, 0x20
call fcn.00403990
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x290]
call fcn.00403970
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x28c]
call fcn.00403970
mov byte [ebp - 0x291], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x34]
call fcn.00403070
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
call fcn.00403070
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403970
mov al, byte [ebp - 0x291]
jmp 0x416084
lea ecx, [ebp - 0x54]
call fcn.004038b0
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x50]
call fcn.004177b0
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x415f07
lea ecx, [ebp - 0x54]
call fcn.00403390
movzx ecx, al
test ecx, ecx
je 0x415be1
push 0x4c1728
lea ecx, [ebp - 0x298]
call fcn.004038f0
mov dword [ebp - 0x318], eax
mov edx, dword [ebp - 0x318]
mov dword [ebp - 0x31c], edx
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x31c]
call fcn.0040ca60
push eax
lea ecx, [ebp - 0x34]
call fcn.00417960
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x298]
call fcn.00403970
jmp 0x415b68
lea ecx, [ebp - 0x58]
call fcn.004038b0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x60]
call fcn.004038b0
mov byte [ebp - 4], 0x14
push 0
push 0x3d
lea ecx, [ebp - 0x54]
call fcn.004030f0
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xffffffff
je 0x415e62
lea ecx, [ebp - 0x54]
call fcn.004039f0
sub eax, dword [ebp - 0x5c]
sub eax, 1
push eax
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x54]
call fcn.004031d0
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
mov dword [ebp - 0x324], ecx
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x324]
push edx
lea ecx, [ebp - 0x58]
call fcn.00403990
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x29c]
call fcn.00403970
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00403260
mov dword [ebp - 0x328], eax
mov edx, dword [ebp - 0x328]
mov dword [ebp - 0x32c], edx
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x60]
call fcn.00403990
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2a0]
call fcn.00403970
lea ecx, [ebp - 0x60]
call fcn.004031b0
lea ecx, [ebp - 0x58]
call fcn.004031b0
push str.LANG
lea ecx, [ebp - 0x60]
call fcn.00403090
mov dword [ebp - 0x330], eax
cmp dword [ebp - 0x330], 0
jne 0x415ce9
mov ecx, dword [ebp - 0x2c8]
add ecx, 0x1c
push ecx
lea ecx, [ebp - 0x58]
call fcn.00403990
movzx edx, byte [ebp + 0xc]
test edx, edx
jne 0x415d1f
push str.BASE_FOLDER
lea ecx, [ebp - 0x60]
call fcn.00403090
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0
jne 0x415d1f
mov eax, dword [ebp - 0x2c8]
add eax, 0x10
push eax
lea ecx, [ebp - 0x58]
call fcn.00403990
push 0x4c1754
lea ecx, [ebp - 0x2a4]
call fcn.004038f0
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x338]
mov dword [ebp - 0x33c], ecx
mov byte [ebp - 4], 0x17
push 0x4c175c
lea ecx, [ebp - 0x2a8]
call fcn.004038f0
mov dword [ebp - 0x340], eax
mov edx, dword [ebp - 0x340]
mov dword [ebp - 0x344], edx
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x344]
push eax
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x2ac]
push edx
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x348], eax
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x34c], eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x34c]
push edx
lea eax, [ebp - 0x2b0]
push eax
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp - 0x350]
mov dword [ebp - 0x354], ecx
mov byte [ebp - 4], 0x1a
mov edx, dword [ebp - 0x33c]
push edx
mov eax, dword [ebp - 0x354]
push eax
lea ecx, [ebp - 0x2b4]
push ecx
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x358], eax
mov edx, dword [ebp - 0x358]
mov dword [ebp - 0x35c], edx
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x35c]
call fcn.0040ca60
push eax
lea ecx, [ebp - 0x34]
call fcn.00417960
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x2b4]
call fcn.00403970
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2b0]
call fcn.00403970
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2ac]
call fcn.00403970
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2a8]
call fcn.00403970
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2a4]
call fcn.00403970
jmp 0x415eea
push 0x4c1764
lea ecx, [ebp - 0x2b8]
call fcn.004038f0
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x364], eax
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x364]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x2bc]
push eax
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x368], eax
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x36c], ecx
mov byte [ebp - 4], 0x1d
mov ecx, dword [ebp - 0x36c]
call fcn.0040ca60
push eax
lea ecx, [ebp - 0x34]
call fcn.00417960
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x2bc]
call fcn.00403970
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2b8]
call fcn.00403970
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x60]
call fcn.00403970
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x58]
call fcn.00403970
jmp 0x415b68
lea ecx, [ebp - 0x50]
call fcn.0047ef2c
lea ecx, [ebp - 0x34]
call fcn.0047ef2c
lea ecx, [ebp - 0x18]
call fcn.0040ca60
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x18]
call fcn.0040ca60
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x18]
push edx
call fcn.0040e9d0
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.0040ca60
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ca60
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x54]
call fcn.00403970
jmp 0x416000
mov dword [ebp - 4], 0xb
jmp 0x416044
mov byte [ebp - 0x2c2], 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x34]
call fcn.00403070
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
call fcn.00403070
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403970
mov al, byte [ebp - 0x2c2]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x64]
xor ecx, ebp
call fcn.0049c63c
mov esp, ebp
pop ebp
ret 8