Function at 0x4055e0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4812ad
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49b1b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov dword [ebp], method.GameMgr::GMDlgAdvertWnd.virtual_0
mov dword [ebp + 0x18], 0x485a20
mov dword [ebp + method.GameMgr::GMMainWnd.virtual_0], vtable.GameMgr::GMMainWnd.0
mov dword [esp + 0x28], 0xa
mov eax, dword [0x49eb2c]
test eax, eax
je 0x40563b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x1e0]
or ebx, 0xffffffff
test esi, esi
je 0x40567c
mov eax, dword [esi]
test eax, eax
je 0x40566d
cmp dword [eax + 0x10], ebx
je 0x40566d
mov eax, dword [eax + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40566d
mov esi, dword [esi]
test esi, esi
je 0x40566d
call fcn.00418bb0
mov edi, dword [ebp + 0x1e0]
test edi, edi
je 0x40567c
call fcn.00403bf0
mov esi, dword [ebp + 0x1e4]
test esi, esi
je 0x4056ba
mov eax, dword [esi]
test eax, eax
je 0x4056ab
cmp dword [eax + 0x10], ebx
je 0x4056ab
mov eax, dword [eax + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4056ab
mov esi, dword [esi]
test esi, esi
je 0x4056ab
call fcn.00418bb0
mov edi, dword [ebp + 0x1e4]
test edi, edi
je 0x4056ba
call fcn.00403bf0
mov esi, dword [ebp + 0x1e8]
test esi, esi
je 0x4056f8
mov eax, dword [esi]
test eax, eax
je 0x4056e9
cmp dword [eax + 0x10], ebx
je 0x4056e9
mov eax, dword [eax + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4056e9
mov esi, dword [esi]
test esi, esi
je 0x4056e9
call fcn.00418bb0
mov edi, dword [ebp + 0x1e8]
test edi, edi
je 0x4056f8
call fcn.00403bf0
mov esi, dword [ebp + 0x1f4]
test esi, esi
je 0x405736
mov eax, dword [esi]
test eax, eax
je 0x405727
cmp dword [eax + 0x10], ebx
je 0x405727
mov eax, dword [eax + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405727
mov esi, dword [esi]
test esi, esi
je 0x405727
call fcn.00418bb0
mov edi, dword [ebp + 0x1f4]
test edi, edi
je 0x405736
call fcn.00403bf0
mov ecx, dword [ebp + 0x1ec]
test ecx, ecx
je 0x405752
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebp + 0x1ec], 0
call fcn.0040e910
mov eax, dword [ebp + 0x790]
mov esi, dword [eax]
lea edi, [ebp + 0x78c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
lea ecx, [ecx]
test edi, edi
mov ebx, dword [ebp + 0x790]
lea eax, [ebp + 0x78c]
je 0x405784
cmp edi, eax
je 0x405789
call fcn.00469efa
cmp esi, ebx
je 0x4057f4
test edi, edi
jne 0x405796
call fcn.00469efa
cmp esi, dword [edi + 4]
jne 0x4057a0
call fcn.00469efa
mov ebx, 8
cmp dword [esi + 0x24], ebx
lea edi, [esi + 0x10]
jb 0x4057b1
mov eax, dword [edi]
jmp 0x4057b3
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
cmp dword [esi + 0x24], ebx
jb 0x4057c6
mov ecx, dword [edi]
jmp 0x4057c8
mov ecx, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x24], ebx
jb 0x4057d7
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [esp + 0x18]
call fcn.0040c3b0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jmp 0x405770
mov esi, dword [ebp + 0x1f8]
test esi, esi
je 0x405885
mov eax, dword [esi]
test eax, eax
je 0x405841
or edi, 0xffffffff
cmp dword [eax + 0x10], edi
je 0x405841
mov eax, dword [eax + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405841
mov esi, dword [esi]
test esi, esi
je 0x405841
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x405836
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], edi
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov edi, dword [ebp + 0x1f8]
test edi, edi
je 0x405885
mov esi, dword [edi + 4]
test esi, esi
je 0x40587c
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40587c
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x40587c
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push edi
call fcn.00469d48
add esp, 4
lea eax, [ebp + 0x78c]
mov byte [esp + 0x28], 9
call fcn.0040b920
lea eax, [ebp + 0x71c]
push eax
mov byte [esp + 0x2c], 8
call fcn.0040d6e0
lea ecx, [ebp + 0x574]
mov ebx, 7
push ecx
mov byte [esp + 0x2c], bl
call fcn.00402480
lea edx, [ebp + 0x430]
push edx
mov byte [esp + 0x2c], 6
call fcn.004012e0
lea eax, [ebp + 0x2f0]
push eax
mov byte [esp + 0x2c], 5
call fcn.004012e0
lea esi, [ebp + 0x248]
mov byte [esp + 0x28], 4
call fcn.00418eb0
mov eax, dword [ebp + 0x240]
cmp eax, 0xffffffff
je 0x40590d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40590d
mov dword [ebp + 0x240], 0xffffffff
cmp dword [ebp + 0x214], 8
jb 0x405925
mov eax, dword [ebp + 0x200]
push eax
call fcn.00469d48
add esp, 4
mov dword [ebp + 0x214], ebx
xor ebx, ebx
lea edi, [ebp + 0x1c8]
mov dword [ebp + 0x210], ebx
mov word [ebp + 0x200], bx
mov dword [esp + 0x18], edi
mov byte [esp + 0x28], 0xb
call fcn.00410df0
mov eax, edi
mov byte [esp + 0x28], 1
call fcn.00410f20
mov dword [ebp + method.GameMgr::GMCompressProgress.virtual_0], vtable.GameMgr::GMCompressProgress.0
mov esi, dword [ebp + 0x1c4]
cmp esi, ebx
je 0x405992
mov eax, dword [esi]
cmp eax, ebx
je 0x405987
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x405987
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405989
mov dword [esi], ebx
push esi
call fcn.00469d48
add esp, 4
push ebp
mov dword [esp + 0x2c], 0xffffffff
call fcn.004301d0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4