Function at 0x4b07e0
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538593
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x56d940]
xor eax, ebp
mov dword [ebp - 0x48], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402c10
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x10]
call fcn.00403460
movzx eax, al
test eax, eax
jne 0x4b092b
push 0x2f
lea ecx, [ebp + 0x10]
call fcn.00402ed0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4b089e
lea ecx, [ebp + 0x10]
call fcn.00408de0
sub eax, dword [ebp - 0x1c]
sub eax, 1
push eax
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp + 0x10]
call fcn.00402fb0
mov dword [ebp - 0x1bc], eax
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c0], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402cf0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x148]
call fcn.00402cd0
lea ecx, [ebp - 0x18]
call fcn.00403460
movzx ecx, al
test ecx, ecx
je 0x4b092b
lea esi, [ebp - 0x14c]
call fcn.004c1590
mov dword [ebp - 0x1c4], eax
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c8], edx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c8]
push ecx
lea edx, [ebp - 0x150]
push edx
call fcn.00403100
add esp, 0xc
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1d0], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1d0]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402cf0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x150]
call fcn.00402cd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14c]
call fcn.00402cd0
lea ecx, [ebp - 0x10]
call fcn.00402c10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
call fcn.00402c10
mov byte [ebp - 4], 8
cmp dword [ebp + 0x18], 2
jne 0x4b0c19
push 0x5490c8
lea ecx, [ebp - 0x10]
call fcn.00402d10
cmp dword [ebp + 0x1c], 0
je 0x4b0969
mov edx, dword [ebp + 0x14]
or edx, 4
mov dword [ebp + 0x14], edx
lea eax, [ebp - 0x20]
push eax
call fcn.00407f90
add esp, 4
mov byte [ebp - 4], 9
push 0x5490cc
lea ecx, [ebp - 0x20]
call fcn.00403370
lea ecx, [ebp - 0x24]
call fcn.00402c10
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x20]
call fcn.00403460
movzx ecx, al
test ecx, ecx
jne 0x4b0a36
push 0x26
lea edx, [ebp - 0x2c]
push edx
call fcn.004c15b0
add esp, 8
mov byte [ebp - 4], 0xb
push 0x5490e0
lea ecx, [ebp - 0x2c]
call fcn.00403370
push 0x5490f0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x154]
push ecx
call fcn.004031b0
add esp, 0xc
mov dword [ebp - 0x1d4], eax
mov edx, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d8], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x24]
call fcn.00402cf0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x154]
call fcn.00402cd0
push 1
lea ecx, [ebp - 0x24]
call fcn.00420f50
push eax
lea ecx, [ebp - 0x20]
call fcn.00420f50
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
call fcn.00402cd0
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00402cf0
lea ecx, [ebp - 0x18]
call fcn.00408de0
mov esi, eax
push 0x2e
lea ecx, [ebp - 0x18]
call fcn.00402ed0
sub esi, eax
sub esi, 1
push esi
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x18]
call fcn.00402fb0
mov byte [ebp - 4], 0xd
push 0x549104
lea eax, [ebp - 0x28]
push eax
call fcn.00403350
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4b0ac1
push 0x54910c
lea edx, [ebp - 0x28]
push edx
call fcn.00403350
add esp, 8
movzx eax, al
test eax, eax
je 0x4b0ac1
push 0x549114
lea ecx, [ebp - 0x28]
push ecx
call fcn.00403350
add esp, 8
movzx edx, al
test edx, edx
je 0x4b0ac1
push 0x54911c
lea ecx, [ebp - 0x18]
call fcn.00402d10
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x158], esp
push 0x549120
call fcn.00402c50
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x15c], esp
lea edx, [ebp + 8]
push edx
call fcn.00402c30
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 4], 0xf
push ecx
mov ecx, esp
mov dword [ebp - 0x160], esp
lea edx, [ebp + 0xc]
push edx
call fcn.00402c30
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f0], eax
mov byte [ebp - 4], 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
lea edx, [ebp - 0x20]
push edx
call fcn.00402c30
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f8], eax
mov byte [ebp - 4], 0x11
push ecx
mov ecx, esp
mov dword [ebp - 0x168], esp
lea edx, [ebp + 0x10]
push edx
call fcn.00402c30
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x200], eax
mov byte [ebp - 4], 0x12
call fcn.004afd10
mov byte [ebp - 4], 0xd
mov ecx, eax
call fcn.00408780
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call fcn.00402cd0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x24]
call fcn.00402cd0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
call fcn.00402cd0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
call fcn.00402cd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00402cd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402cd0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00402cd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00402cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00402cd0
jmp 0x4b1396
cmp dword [ebp + 0x18], 3
jne 0x4b0ee6
push 0x549124
lea ecx, [ebp - 0x10]
call fcn.00402d10
cmp dword [ebp + 0x1c], 0
je 0x4b0c3f
mov ecx, dword [ebp + 0x14]
or ecx, 4
mov dword [ebp + 0x14], ecx
push 0x26
lea edx, [ebp - 0x38]
push edx
call fcn.004c15b0
add esp, 8
mov byte [ebp - 4], 0x13
push 0x549128
lea ecx, [ebp - 0x38]
call fcn.00403370
push 0x549138
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004031b0
add esp, 0xc
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x1b8]
call fcn.004afcd0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x34]
call fcn.00403460
movzx eax, al
test eax, eax
jne 0x4b0ce7
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x16c], esp
lea edx, [ebp - 0x3c]
push edx
call fcn.00402c30
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 0x16
push ecx
mov ecx, esp
mov dword [ebp - 0x170], esp
lea edx, [ebp - 0x34]
push edx
call fcn.00402c30
mov dword [ebp - 0x20c], eax
mov byte [ebp - 4], 0x15
call fcn.004be2d0
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402c30
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x18]
call fcn.00408de0
mov esi, eax
push 0x2e
lea ecx, [ebp - 0x18]
call fcn.00402ed0
sub esi, eax
sub esi, 1
push esi
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402fb0
mov byte [ebp - 4], 0x18
push 0x549150
lea edx, [ebp - 0x40]
push edx
call fcn.00403350
add esp, 8
movzx eax, al
test eax, eax
je 0x4b0d76
push 0x549158
lea ecx, [ebp - 0x40]
push ecx
call fcn.00403350
add esp, 8
movzx edx, al
test edx, edx
je 0x4b0d76
push 0x549160
lea eax, [ebp - 0x40]
push eax
call fcn.00403350
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4b0d76
push 0x549168
lea ecx, [ebp - 0x18]
call fcn.00402d10
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x174], esp
push 0x54916c
call fcn.00402c50
mov dword [ebp - 0x210], eax
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x214], edx
mov byte [ebp - 4], 0x19
mov eax, dword [ebp + 0x14]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x178], esp
lea edx, [ebp + 8]
push edx
call fcn.00402c30
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0x1a
push ecx
mov ecx, esp
mov dword [ebp - 0x17c], esp
lea edx, [ebp + 0xc]
push edx
call fcn.00402c30
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0x1b
push ecx
mov ecx, esp
mov dword [ebp - 0x180], esp
lea edx, [ebp - 0x30]
push edx
call fcn.00402c30
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 0x1c
push ecx
mov ecx, esp
mov dword [ebp - 0x184], esp
lea edx, [ebp + 0x10]
push edx
call fcn.00402c30
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0x1d
call fcn.004afd10
mov byte [ebp - 4], 0x18
mov ecx, eax
call fcn.00408780
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x40]
call fcn.00402cd0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x30]
call fcn.00402cd0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x34]
call fcn.00402cd0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x3c]
call fcn.00402cd0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
call fcn.00402cd0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
call fcn.00402cd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00402cd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402cd0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00402cd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00402cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00402cd0
jmp 0x4b1396
cmp dword [ebp + 0x18], 1
jne 0x4b0f77
push 0x26
lea ecx, [ebp - 0x188]
push ecx
call fcn.004c15b0
add esp, 8
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], edx
mov byte [ebp - 4], 0x1e
push 0x549170
mov eax, dword [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x18c]
push ecx
call fcn.004031b0
add esp, 0xc
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x244], edx
mov byte [ebp - 4], 0x1f
mov eax, dword [ebp - 0x244]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402cf0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x18c]
call fcn.00402cd0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x188]
call fcn.00402cd0
jmp 0x4b0fbf
push 0
lea ecx, [ebp - 0x190]
push ecx
lea edi, [ebp - 0x10]
call fcn.004bd720
add esp, 8
mov dword [ebp - 0x248], eax
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x24c], edx
mov byte [ebp - 4], 0x20
mov eax, dword [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402cf0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x190]
call fcn.00402cd0
push ecx
mov ecx, esp
mov dword [ebp - 0x194], esp
lea edx, [ebp - 0x10]
push edx
call fcn.00402c30
mov dword [ebp - 0x250], eax
call fcn.004be100
add esp, 4
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x4b134b
lea esi, [ebp - 0x198]
call fcn.004c1570
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 0x21
push 0x5491bc
mov ecx, dword [ebp - 0x25c]
push ecx
lea edx, [ebp - 0x19c]
push edx
call fcn.004031b0
add esp, 0xc
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0x22
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x264]
push edx
lea eax, [ebp - 0x1a0]
push eax
call fcn.00403100
add esp, 0xc
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x26c], ecx
mov byte [ebp - 4], 0x23
push 0x5491b0
mov edx, dword [ebp - 0x26c]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.004031b0
add esp, 0xc
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x1a0]
call fcn.00402cd0
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x19c]
call fcn.00402cd0
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x198]
call fcn.00402cd0
push ecx
mov ecx, esp
mov dword [ebp - 0x1a4], esp
lea edx, [ebp - 0x44]
push edx
call fcn.00402c30
mov dword [ebp - 0x270], eax
call fcn.004be100
add esp, 4
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0
je 0x4b1144
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.00402cd0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
call fcn.00402cd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00402cd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402cd0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00402cd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00402cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00402cd0
jmp 0x4b1396
push ecx
mov ecx, esp
mov dword [ebp - 0x1a8], esp
lea eax, [ebp - 0x18]
push eax
call fcn.00402c30
mov dword [ebp - 0x278], eax
call fcn.004be100
add esp, 4
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
jne 0x4b127e
xor eax, eax
lea esi, [ebp - 0x124]
call fcn.004c1b10
mov byte [ebp - 4], 0x28
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1ac], esp
push 0x5491c0
call fcn.00401500
mov dword [ebp - 0x280], eax
lea ecx, [ebp + 0x10]
call fcn.00420f50
push eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.004c2bd0
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 0
je 0x4b126f
lea eax, [ebp - 0x124]
call fcn.004c33d0
push eax
lea ecx, [ebp - 0x134]
call fcn.00420f80
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x134]
call fcn.00421060
test eax, eax
jne 0x4b1260
lea ecx, [ebp - 0x144]
call fcn.004e4bd7
mov byte [ebp - 4], 0x2a
push 0
push 0x9001
lea ecx, [ebp - 0x18]
call fcn.00420f50
push eax
lea ecx, [ebp - 0x144]
call fcn.004e4fbe
test eax, eax
je 0x4b1251
lea ecx, [ebp - 0x134]
call fcn.00421060
push eax
lea ecx, [ebp - 0x134]
call fcn.004b14b0
push eax
lea ecx, [ebp - 0x144]
call fcn.004e490d
lea ecx, [ebp - 0x144]
call fcn.004e4b71
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x144]
call fcn.004e4cb2
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x134]
call fcn.00421020
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x124]
call fcn.004c1bd0
lea ecx, [ebp + 8]
call fcn.00420f50
push eax
push 0
lea ecx, [ebp - 0x18]
call fcn.00420f50
push eax
lea ecx, [ebp - 0x44]
call fcn.00420f50
push eax
lea ecx, [ebp - 0x10]
call fcn.00420f50
mov ecx, eax
call fcn.004bd9e0
add esp, 0x10
cmp dword [ebp + 0x1c], 0
je 0x4b133f
push 0
push 1
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1b0], esp
lea edx, [ebp - 0x44]
push edx
call fcn.00402c30
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.004b5bc0
add esp, 0x10
mov dword [ebp - 0x28c], eax
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x290], ecx
mov byte [ebp - 4], 0x2b
mov ecx, dword [ebp - 0x290]
call fcn.00420f50
push eax
call fcn.004b5a10
add esp, 8
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x1b4]
call fcn.00402cd0
lea ecx, [ebp - 0x44]
call fcn.00420f50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 1
push eax
lea ecx, [ebp - 0x44]
call fcn.00420f50
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.00402cd0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
call fcn.00402cd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00402cd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402cd0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00402cd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00402cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00402cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.005007b7
mov esp, ebp
pop ebp
ret 0x18