Function at 0x478630
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5df7b0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
xor ebx, ebx
cmp dword [esi + 0x1104], eax
je 0x478689
mov dword [esi + 0x10e4], 0x3f3
mov dword [esi + 0x10e8], ebx
mov dword [esi + 0x10ec], ebx
jmp 0x4789e6
cmp dword [esi + 0x10f0], ebx
je 0x4789e6
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1100], eax
mov dword [esi + 0x10f4], ebx
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], ebx
xor edx, edx
mov word [ecx], dx
mov eax, dword [esi + 0x14]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x10cc]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea edi, [esi + 0x54]
mov dword [eax + 8], ebx
push edx
mov ecx, edi
mov dword [esp + 0x18], eax
mov dword [esi + 0x48], ebx
call fcn.00453e50
push edi
call fcn.00454070
mov eax, dword [edi]
push 0x5f4868
push eax
call fcn.0057ed9e
add esp, 0xc
neg eax
sbb eax, eax
inc eax
push 0x12c
lea ecx, [esp + 0x38]
mov dword [esi + 0x10f8], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00453dc0
mov edx, dword [esp + 0x34]
xor ecx, ecx
mov word [edx], cx
push 0x12c
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00453dc0
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x54], 1
call fcn.00473800
mov eax, dword [edi]
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x478770
sub eax, edx
sar eax, 1
cmp eax, dword [edi + 4]
jb 0x47879b
push 0x62d930
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], str.The_string_has_no_terminating_null_character_
call fcn.00578eca
cmp eax, 3
jb 0x4789be
lea ecx, [esp + 0x34]
call fcn.00453d80
cmp eax, 2
jb 0x4789be
lea ecx, [esp + 0x2c]
call fcn.00453d80
cmp eax, 2
jb 0x4789be
mov eax, dword [esi + 0x5c]
lea edi, [esi + 0x5c]
xor ecx, ecx
mov word [eax], cx
push 0x12c
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00453c20
mov edx, dword [esp + 0x24]
mov byte [edx], bl
push 0x12c
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 2
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00453c20
mov eax, dword [esp + 0x1c]
mov byte [eax], bl
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x34]
push ecx
push ebx
push 0x477470
push ebx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 3
call fcn.004735e0
push eax
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x3c]
call fcn.004735e0
mov ecx, dword [esi + 0x10f0]
mov edx, dword [esi + 0x1110]
push eax
push ecx
call edx
add esp, 0x1c
test eax, eax
je 0x47892b
mov eax, dword [edi]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x478860
sub eax, edx
sar eax, 1
cmp eax, dword [edi + 4]
jae 0x4789a7
cmp eax, ebx
je 0x47892b
push edi
lea ecx, [esp + 0x30]
call fcn.00453e50
mov eax, dword [esp + 0x1c]
push eax
call fcn.00579478
mov ecx, dword [esp + 0x28]
push ecx
mov byte [esp + 0x50], 1
call fcn.00579478
add esp, 8
push 0x12c
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00453c20
mov edx, dword [esp + 0x24]
mov byte [edx], bl
push 0x12c
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 2
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00453c20
mov eax, dword [esp + 0x1c]
mov byte [eax], bl
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x34]
push ecx
push ebx
push 0x477470
push ebx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 3
call fcn.004735e0
push eax
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x3c]
call fcn.004735e0
mov ecx, dword [esi + 0x10f0]
mov edx, dword [esi + 0x1110]
push eax
push ecx
call edx
add esp, 0x1c
test eax, eax
jne 0x478858
mov eax, dword [esp + 0x1c]
push eax
call fcn.00579478
mov ecx, dword [esp + 0x28]
push ecx
mov byte [esp + 0x50], 1
call fcn.00579478
mov edx, dword [esi + 8]
add esp, 8
push edx
mov ecx, esi
call fcn.004756a0
cmp dword [esi + 0x10f4], ebx
je 0x478969
cmp dword [esi + 8], ebx
je 0x478969
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, dword [esp + 0x14]
call fcn.00473910
mov ecx, dword [esp + 0x2c]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call fcn.00579478
mov edx, dword [esp + 0x38]
push edx
call fcn.00579478
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x62d930
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], str.The_string_has_no_terminating_null_character_
call fcn.00578eca
mov eax, dword [esp + 0x14]
mov dword [eax + 0x18], 0x3ea
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov eax, dword [esp + 0x2c]
push eax
call fcn.00579478
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00579478
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc