Function at 0x5b8c2d
Capabilities:
Check if file exists
Delete file
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6ca636
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
push edi
mov edi, 0x10
cmp eax, edi
mov dword [esp + 0x34], esi
jb 0x5b8c46
mov eax, dword [esi + 0x30]
jmp 0x5b8c49
lea eax, [esi + 0x30]
xor ebp, ebp
push ebp
lea ebx, [esi + 0x20]
push ebp
push eax
mov ecx, ebx
mov dword [esp + 0x48], ebx
call fcn.0058b5a0
test eax, eax
jne 0x5b8ffb
mov ecx, ebx
call fcn.0058b540
mov dword [esi + 0x50], eax
cmp dword [esi + 0x44], edi
jb 0x5b8c78
mov edi, dword [esi + 0x30]
jmp 0x5b8c7b
lea edi, [esi + 0x30]
lea eax, [esp + 0x70]
push edi
push eax
call fcn.00630960
lea ecx, [esp + 0x78]
push 0x2e
push ecx
call fcn.00630f40
push str..ghd
push eax
call fcn.00630960
add esp, 0x18
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5b8cbf
test al, 0x10
jne 0x5b8cbf
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x110
lea ecx, [esp + 0x178]
push ebp
push ecx
call fcn.0062f6b0
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
push 0x5b3b10
lea edx, [esp + 0x184]
push edx
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x2a8], ebp
call fcn.0057ec90
add esp, 0x1c
test al, al
je 0x5b8fea
lea ecx, [esp + 0x174]
push ecx
push ebx
lea ecx, [esp + 0x4c]
call fcn.006bf100
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
mov byte [esp + 0x298], 1
call fcn.005b5a50
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x5b8fcd
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
push eax
mov eax, dword [esi + 0x18]
push eax
call fcn.005b5cb0
mov ecx, dword [esi + 0x18]
push ecx
call fcn.00630b88
push edi
mov dword [esi + 0x1c], ebp
call fcn.00630ca0
mov ecx, eax
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp eax, ebp
mov dword [esi + 0x18], ecx
mov edi, ecx
jne 0x5b8d79
xor eax, eax
jmp 0x5b8d90
mov edx, dword [esp + 0x28]
sub edx, eax
mov eax, 0x78787879
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ecx
mov dword [esi + 0x1c], eax
call fcn.005b5790
mov edx, dword [esi + 0x1c]
imul edx, edx, 0x1c
add esp, 8
add edi, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
jmp 0x5b8dc0
mov edi, dword [esp + 0x24]
cmp edi, ebp
je 0x5b8f97
mov ecx, dword [esp + 0x28]
sub ecx, edi
mov eax, 0x78787879
imul ecx
mov ecx, dword [esp + 0x18]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x5b8f97
mov eax, dword [esp + 0x1c]
lea ebx, [eax + edi]
push ebx
mov dword [esp + 0x44], ebx
call fcn.00630cb2
mov ecx, dword [ebx + 0x10c]
add esp, 4
mov edi, eax
push ecx
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], edi
call fcn.006bf060
test al, al
je 0x5b8f7a
lea ecx, [esp + 0x44]
call fcn.00564410
mov ebp, dword [eax + 8]
mov edi, dword [esi + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edi, edx
mov edx, dword [esp + 0x38]
mov dword [edi + 8], eax
lea eax, [eax + ebp*4]
mov dword [edi], edx
mov dword [edi + 0x18], ebp
mov dword [edi + 4], eax
mov ecx, dword [ebx + 0x104]
mov dword [edi + 0xc], ecx
mov edx, dword [ebx + 0x108]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x10], eax
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], ebx
jbe 0x5b8f0e
lea esi, [eax + 0x20]
jmp 0x5b8e80
push ebx
lea ecx, [esp + 0x48]
call fcn.005ac4f0
lea ecx, [esp + 0x44]
call fcn.006bf050
mov ebp, eax
mov eax, dword [ebp + 4]
test eax, eax
je 0x5b8ef1
mov ecx, dword [edi + 8]
lea eax, [esi - 0x20]
push eax
mov dword [ecx + ebx*4], eax
call fcn.005b5370
mov edx, dword [ebp]
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 0x104]
lea ecx, [edx + ecx + 0x10]
mov edx, dword [esp + 0x38]
mov dword [esi - 8], ecx
mov ecx, dword [esp + 0x14]
add eax, 3
mov dword [esi + 4], edx
mov dx, word [esp + 0x3c]
and eax, 0xfffffffc
add ecx, 0x30
add esp, 4
mov word [esi], dx
mov word [esi + 2], bx
mov dword [esi - 4], eax
mov dword [esp + 0x10], ecx
add esi, 0x30
jmp 0x5b8efb
mov eax, dword [edi + 8]
mov dword [eax + ebx*4], 0
mov eax, dword [esp + 0x30]
inc ebx
cmp ebx, eax
jb 0x5b8e80
mov esi, dword [esp + 0x34]
mov ebp, eax
xor ebx, ebx
test ebp, ebp
jbe 0x5b8f4d
push ebx
lea ecx, [esp + 0x48]
call fcn.005ac4f0
lea ecx, [esp + 0x44]
call fcn.006bf050
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5b8f48
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x48]
call fcn.006bf0e0
mov edx, dword [edi + 8]
mov ecx, dword [edx + ebx*4]
push eax
call fcn.005b5660
inc ebx
cmp ebx, ebp
jb 0x5b8f14
xor ebp, ebp
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x3c]
inc edx
add ecx, 0x110
add eax, 0x1c
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
jmp 0x5b8dc0
mov eax, dword [esi + 0x18]
add eax, dword [esp + 0x14]
mov dword [eax], edi
mov dword [eax + 8], ebp
mov dword [eax + 4], ebp
mov dword [eax + 0x18], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], ebp
jmp 0x5b8f4f
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push 0x565f80
push 0x1c
push eax
push ecx
call fcn.00631c80
mov edx, dword [esi]
add esp, 0x10
push 2
mov ecx, esi
call dword [edx + 0xc]
test al, al
mov ecx, esi
je 0x5b9008
call fcn.005b7e90
test al, al
jne 0x5b8fff
mov ecx, ebx
call fcn.0058b560
mov eax, dword [esp + 0x50]
cmp eax, ebp
je 0x5b8fde
push eax
call fcn.00630114
add esp, 4
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x5b8ffb
push eax
call fcn.00630114
add esp, 4
xor al, al
jmp 0x5b904a
mov ecx, esi
call fcn.005b8590
jmp 0x5b901a
mov eax, dword [esi]
push 8
call dword [eax + 0xc]
test al, al
jne 0x5b901a
mov ecx, ebx
call fcn.0058b560
mov eax, dword [esp + 0x50]
cmp eax, ebp
je 0x5b902b
push eax
call fcn.00630114
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
je 0x5b9048
push eax
call fcn.00630114
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x280
ret