Function at 0x486e5c
Capabilities:
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x61
push 0
push 0
dec ecx
jne 0x486e64
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 4]
call fcn.00405728
lea eax, [ebp - 0x298]
mov edx, dword [0x475914]
call fcn.00405748
xor eax, eax
push ebp
push 0x487835
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
push ebp
push 0x4877ba
push dword fs:[edx]
mov dword fs:[edx], esp
lea ecx, [ebp - 0x298]
mov edx, 0x3f
mov eax, dword [ebp - 4]
call fcn.004759a4
test eax, eax
jne 0x486f1b
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x2ac], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x2b0], eax
jmp 0x486f28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4877c6
lea eax, [ebp - 0x298]
call fcn.00475a18
push 0x20
mov eax, dword [ebp - 4]
call fcn.004054e0
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
lea eax, [ebp - 0xc]
call fcn.00404b68
lea eax, [ebp - 0x10]
call fcn.00404b68
xor edx, edx
push ebp
push 0x4875f7
push dword fs:[edx]
mov dword fs:[edx], esp
push 2
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x475b1c]
call fcn.00475fb4
mov esi, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x486f8a
cmp eax, 4
jbe 0x4875e6
jmp 0x486f90
jle 0x4875e6
mov eax, esi
mov edx, dword [eax]
call dword [edx]
sub eax, 4
sbb edx, 0
push edx
push eax
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x2d8]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x2d8]
cdq
cmp edx, dword [esp + 4]
jne 0x486fdb
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4875e6
jmp 0x486fe3
pop edx
pop eax
jge 0x4875e6
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x2d8]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x2d8]
call fcn.00405288
lea eax, [ebp - 0x1c]
call fcn.00405058
mov edx, eax
mov ecx, dword [ebp - 0x2d8]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x2e4]
mov edx, dword [ebp - 0x1c]
movzx edx, byte [edx]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x2e4]
lea eax, [ebp - 0x2e8]
call fcn.004034c4
lea eax, [ebp - 0x2ec]
mov edx, dword [ebp - 0x1c]
movzx edx, byte [edx + 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x2ec]
lea eax, [ebp - 0x2e8]
mov cl, 2
call fcn.00403494
lea eax, [ebp - 0x2e8]
mov edx, 0x487848
movzx ecx, byte [eax]
inc ecx
call fcn.00403570
jne 0x4875e6
mov dl, 1
mov eax, dword [0x475c0c]
call fcn.00403c74
mov ebx, eax
lea eax, [ebp - 0x1c]
call fcn.00405058
mov edx, eax
mov ecx, dword [ebp - 0x2d8]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
push 0
push 2
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x2d0]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2d8]
sub eax, 4
sub eax, 8
cdq
push edx
push eax
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x2c0]
mov ecx, 8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebp - 0x2d0], 0
jle 0x4873e5
lea eax, [ebp - 0x14]
call fcn.00404b68
push 0
push 6
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x2d0]
dec eax
test eax, eax
jl 0x48718d
inc eax
mov dword [ebp - 0x2e0], eax
lea edx, [ebp - 0x2c8]
mov ecx, 8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x2c4]
push dword [ebp - 0x2c8]
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea eax, [ebp - 0x18]
mov edx, 0x400
call fcn.00405288
lea eax, [ebp - 0x18]
call fcn.00405058
mov edx, eax
mov ecx, 0x400
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00404e34
dec dword [ebp - 0x2e0]
jne 0x487130
push dword [ebp - 0x2bc]
push dword [ebp - 0x2c0]
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x2d8]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
sub eax, dword [ebp - 0x2c0]
sbb edx, dword [ebp - 0x2bc]
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00405288
mov eax, esi
mov edx, dword [eax]
call dword [edx]
sub eax, dword [ebp - 0x2d8]
sub eax, dword [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x18]
call fcn.00405058
mov edx, eax
mov eax, esi
pop ecx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00404e34
lea edx, [ebp - 0x2d4]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x2d4]
call fcn.00405288
lea eax, [ebp - 0x20]
call fcn.00405058
mov edx, eax
mov ecx, dword [ebp - 0x2d4]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x29c]
mov edi, dword [eax + 4]
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x20]
call fcn.004838cc
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x48725e
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x30
jne 0x4872b8
lea eax, [ebp - 0xc]
mov edx, 0x20
call fcn.00405288
lea eax, [ebp - 0x10]
mov edx, 0x10
call fcn.00405288
lea eax, [ebp - 0x24]
call fcn.00405058
push eax
lea eax, [ebp - 0xc]
call fcn.00405058
mov ecx, 0x20
pop edx
call fcn.004077a0
lea eax, [ebp - 0x24]
call fcn.00405058
add eax, 0x20
push eax
lea eax, [ebp - 0x10]
call fcn.00405058
mov ecx, 0x10
pop edx
call fcn.004077a0
push 2
lea eax, [ebp - 0x2f0]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00485bd8
mov edx, dword [ebp - 0x2f0]
lea eax, [ebp - 0x14]
call fcn.00404c00
push 0
push 6
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x2d0]
dec eax
test eax, eax
jl 0x48735d
inc eax
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2cc], 0
lea edx, [ebp - 0x2c8]
mov ecx, 8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x2c4]
push dword [ebp - 0x2c8]
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea eax, [ebp - 0x14]
call fcn.00405058
mov edx, dword [ebp - 0x2cc]
shl edx, 0xa
inc edx
lea edx, [eax + edx - 1]
mov ecx, 0x400
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
inc dword [ebp - 0x2cc]
dec dword [ebp - 0x2e0]
jne 0x487306
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x487369
sub ecx, 4
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x2c0]
mov edx, dword [ebp - 0x2bc]
push edx
push eax
mov eax, ecx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov ebx, dword [ebp - 0x2cc]
shl ebx, 0xa
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4873b1
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x14]
call fcn.00405058
mov edx, ebx
inc edx
lea edx, [eax + edx - 1]
mov ecx, edi
sub ecx, ebx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
push dword [ebp - 0x2bc]
push dword [ebp - 0x2c0]
mov eax, esi
call fcn.00475d80
mov bl, 1
jmp 0x4875e6
cmp dword [ebp - 0x2bc], 0
jne 0x4873fc
cmp dword [ebp - 0x2c0], 0x400
jbe 0x48740a
jmp 0x4873fe
jle 0x48740a
mov dword [ebp - 0x2dc], 0x400
jmp 0x487416
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2dc], eax
push dword [ebp - 0x2bc]
push dword [ebp - 0x2c0]
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x2d8]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
sub eax, dword [ebp - 0x2c0]
sbb edx, dword [ebp - 0x2bc]
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00405288
mov eax, esi
mov edx, dword [eax]
call dword [edx]
sub eax, dword [ebp - 0x2d8]
sub eax, dword [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x18]
call fcn.00405058
mov edx, eax
mov eax, esi
pop ecx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x2dc]
call fcn.00405288
push 0
push 0
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea eax, [ebp - 0x14]
call fcn.00405058
mov edx, eax
mov ecx, dword [ebp - 0x2dc]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00404e34
push 0
push 6
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x2d4]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x2d4]
call fcn.00405288
lea eax, [ebp - 0x20]
call fcn.00405058
mov edx, eax
mov ecx, dword [ebp - 0x2d4]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x29c]
mov ebx, dword [eax + 4]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 0x20]
call fcn.004838cc
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x487526
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x30
jne 0x487580
lea eax, [ebp - 0xc]
mov edx, 0x20
call fcn.00405288
lea eax, [ebp - 0x10]
mov edx, 0x10
call fcn.00405288
lea eax, [ebp - 0x24]
call fcn.00405058
push eax
lea eax, [ebp - 0xc]
call fcn.00405058
mov ecx, 0x20
pop edx
call fcn.004077a0
lea eax, [ebp - 0x24]
call fcn.00405058
add eax, 0x20
push eax
lea eax, [ebp - 0x10]
call fcn.00405058
mov ecx, 0x10
pop edx
call fcn.004077a0
push 2
lea eax, [ebp - 0x2f4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00485bd8
mov edx, dword [ebp - 0x2f4]
lea eax, [ebp - 0x14]
call fcn.00404c00
push 0
push 0
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4875be
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x14]
call fcn.00405058
mov edx, eax
mov ecx, ebx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
push dword [ebp - 0x2bc]
push dword [ebp - 0x2c0]
mov eax, esi
call fcn.00475d80
mov bl, 1
mov eax, esi
call fcn.00403ca4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487603
test bl, bl
je 0x487735
xor edx, edx
push ebp
push 0x487729
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x48ee08]
cmp byte [eax + 6], 0
je 0x4876c6
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00476828
mov eax, dword [0x48ee08]
mov eax, dword [eax + 8]
mov dword [ebp - 0x2f8], eax
mov ebx, dword [ebp - 0x2f8]
test ebx, ebx
je 0x487650
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 8]
call fcn.004054f0
mov edx, eax
sub edx, ebx
lea eax, [ebp - 8]
call fcn.004056e4
lea eax, [ebp - 0x304]
mov edx, dword [ebp - 8]
call fcn.00404df0
mov eax, dword [ebp - 0x304]
lea edx, [ebp - 0x300]
call fcn.0048615c
mov eax, dword [ebp - 0x300]
lea ecx, [ebp - 0x2fc]
mov edx, dword [ebp - 0x20]
call fcn.00486528
mov edx, dword [ebp - 0x2fc]
lea eax, [ebp - 8]
call fcn.00405380
lea edx, [ebp - 0x308]
mov eax, dword [ebp - 4]
call fcn.004767a4
mov edx, dword [ebp - 0x308]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040555c
jmp 0x487702
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405380
mov eax, dword [0x48ee08]
mov eax, dword [eax + 8]
mov dword [ebp - 0x2f8], eax
mov ebx, dword [ebp - 0x2f8]
test ebx, ebx
je 0x4876ee
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 8]
call fcn.004054f0
mov edx, eax
sub edx, ebx
lea eax, [ebp - 8]
call fcn.004056e4
mov eax, dword [ebp - 8]
call fcn.004054e0
push eax
mov eax, dword [ebp - 4]
call fcn.004054e0
push eax
call sub.KERNEL32.DLL_MoveFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487735
test bl, bl
je 0x4877b0
xor eax, eax
push ebp
push 0x4877a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x11
mov eax, dword [ebp - 8]
call fcn.00486608
mov esi, eax
mov eax, esi
xor edx, edx
cmp edx, 0xffffffff
jne 0x487762
cmp eax, 0xffffffff
je 0x487785
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2a4]
push eax
push esi
call sub.KERNEL32.DLL_SetFileTime
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 8]
call fcn.004054e0
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4877b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4877c6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48783c
lea eax, [ebp - 0x308]
call fcn.0040531c
lea eax, [ebp - 0x304]
mov edx, 2
call fcn.00404b8c
lea eax, [ebp - 0x2fc]
call fcn.0040531c
lea eax, [ebp - 0x2f4]
mov edx, 2
call fcn.00404b8c
lea eax, [ebp - 0x298]
mov edx, dword [0x475914]
call fcn.00405818
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.00404b8c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405334
ret