Function at 0x460700
Capabilities:
Delete file
Get file attributes
Read file on windows
Resolve function by parsing pe exports
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5e7cea
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x174], eax
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x18c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x19c]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x1a0]
mov edx, dword [esp + 0x1a4]
xor edi, edi
mov dword [esp + 0x194], edi
push 0x80000
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x30], edi
xor ebp, ebp
mov dword [esp + 0x64], edi
mov dword [esp + 0x50], vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0x5c], edi
call fcn.0059b872
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], 0x80000
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x1a8]
mov ecx, dword [esp + 0x1ac]
push 1
mov byte [esp + 0x198], 2
push edi
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0xb4]
push edi
lea esi, [esp + 0x80]
mov byte [esp + 0x1f], 0
mov byte [esp + 0x1e], 0
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x8c], ecx
call fcn.004316d0
test al, al
jne 0x460878
push edi
push 0x6190bc
lea esi, [esp + 0xb4]
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], edi
mov word [esp + 0xb8], di
call fcn.00402770
mov byte [esp + 0x194], 3
mov esi, dword [ebx]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi]
lea edx, [esp + 0xb0]
push edx
push 0x10000002
mov ecx, ebx
call eax
mov byte [esp + 0x194], 2
cmp dword [esp + 0xc4], 8
jb 0x460878
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x1ac]
cmp eax, edi
mov ecx, dword [esp + 0x1a8]
ja 0x4608a0
cmp ecx, edi
jbe 0x460f3e
cmp eax, edi
jb 0x4608ae
ja 0x4608a0
cmp ecx, 0x80000
jbe 0x4608ae
mov ecx, 0x80000
mov dword [esp + 0x90], edi
jmp 0x4608b5
mov dword [esp + 0x90], eax
mov edx, dword [esp + 0x54]
cmp edx, edi
mov eax, dword [ebx + 0xb4]
je 0x460fba
cmp dword [eax], 0xffffffff
je 0x460fba
push edi
lea esi, [esp + 0x38]
push esi
push ecx
push edx
mov dword [esp + 0x44], edi
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x460fba
mov eax, dword [esp + 0x34]
cmp eax, edi
seta cl
test cl, cl
je 0x460fba
sub dword [esp + 0x1a8], eax
mov al, byte [ebx + 0x100]
sbb dword [esp + 0x1ac], edi
test al, al
jne 0x46108f
mov eax, dword [esp + 0x34]
cmp eax, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], edi
jbe 0x460f10
mov esi, dword [esp + 0x1b0]
lea esp, [esp]
mov eax, dword [ebx + 0x104]
cmp eax, edi
je 0x460958
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x460958
push eax
call sub.KERNEL32.dll_Sleep
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
mov byte [esp + 0x70], 0
call eax
xor ecx, ecx
cmp dword [esp + 0x1a4], ecx
jg 0x460981
jl 0x46097c
cmp dword [esp + 0x1a0], eax
ja 0x460981
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x70]
mov edx, dword [esi]
mov edx, dword [edx + 8]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x54]
add ecx, eax
push ecx
mov ecx, esi
call edx
test al, al
je 0x4610f3
mov eax, dword [esp + 0x38]
add dword [esp + 0x48], eax
sub dword [esp + 0x28], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test eax, eax
jbe 0x460f06
mov dword [esp + 0x18], edi
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call edx
cmp eax, edi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
je 0x460efd
mov eax, dword [esp + 0x18]
cmp eax, edi
jbe 0x460efd
sub dword [esp + 0x1a0], eax
sbb dword [esp + 0x1a4], edi
lea esp, [esp]
mov esi, dword [esp + 0x6c]
mov eax, esi
call fcn.004902f0
mov edx, dword [esp + 0x2c]
cmp edx, eax
jae 0x4612b6
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x460a3a
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edx, eax
jb 0x460a3f
call fcn.005b8b18
mov edx, dword [esp + 0x2c]
mov eax, esi
mov ecx, dword [eax + 4]
mov edi, dword [ecx + edx*8]
lea eax, [ecx + edx*8]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], eax
je 0x460a69
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0xe4]
push edx
mov byte [esp + 0x198], 5
call fcn.00461330
cmp byte [esp + 0x13], 0
mov byte [esp + 0x194], 6
jne 0x460d3b
lea eax, [esp + 0x110]
push eax
call fcn.0042a550
add esp, 4
test al, al
je 0x460c14
mov eax, dword [esp + 0x114]
mov esi, 8
cmp dword [esp + 0x128], esi
jae 0x460ac5
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x114]
and eax, 0xfffffffe
cmp dword [esp + 0x128], esi
jae 0x460ae6
lea ecx, [esp + 0x114]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x128], esi
mov eax, dword [esp + 0x114]
jae 0x460b05
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
je 0x460c14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov edx, dword [edx + 0x30]
mov esi, eax
lea eax, [esp + 0x110]
push eax
push esi
mov ecx, ebx
call edx
test al, al
jne 0x460c9e
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push esi
lea ecx, [esp + 0x114]
push ecx
push 0x10000004
mov ecx, ebx
call edx
test al, al
jne 0x460c9e
lea esi, [esp + 0xe4]
mov byte [esp + 0x194], 5
call fcn.0045e8c0
mov byte [esp + 0x194], 2
mov esi, dword [esp + 0x68]
test esi, esi
je 0x460ba4
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x460ba4
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 0x460ba4
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x460bb4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x54]
push eax
call fcn.0059b877
mov dword [esp + 0x198], 0xffffffff
mov esi, dword [esp + 0x1b8]
add esp, 4
test esi, esi
je 0x461088
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x461088
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x461088
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
xor al, al
jmp 0x460f91
cmp byte [esp + 0x12], 0
jne 0x460ca3
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x114]
or eax, 0x8000000
cmp dword [esp + 0x128], 8
jae 0x460c43
lea ecx, [esp + 0x114]
push 0
push eax
push 4
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x460ca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x110]
push ecx
push esi
mov ecx, ebx
call edx
test al, al
jne 0x460c9e
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push esi
lea ecx, [esp + 0x114]
push ecx
push 0x10000001
mov ecx, ebx
call edx
test al, al
je 0x46118c
mov byte [esp + 0x12], 1
cmp dword [esp + 0x164], 0
jne 0x460cd5
cmp dword [esp + 0x168], 0
jne 0x460cd5
mov eax, dword [esp + 0x14c]
add dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x150]
mov ebp, eax
adc dword [esp + 0x20], ecx
mov dword [esp + 0x60], ecx
jmp 0x460d05
mov ebp, dword [esp + 0x84]
sub ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x88]
sbb eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1a4]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1a0]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x38]
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
push 0
push eax
lea ecx, [esp + 0xec]
push ecx
mov ecx, ebx
mov byte [esp + 0x1f], 1
call edx
mov ecx, dword [ebx + 0x104]
test ecx, ecx
je 0x460d3b
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [esp + 0xe4]
push edx
call eax
xor ecx, ecx
cmp byte [esp + 0x12], cl
mov dword [esp + 0x30], ecx
jne 0x460d9b
mov esi, dword [esp + 0x18]
cmp ebp, esi
jae 0x460d51
mov esi, ebp
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
add eax, edx
cmp eax, ecx
je 0x46123a
cmp edi, 0xffffffff
je 0x46123a
push 0
lea ecx, [esp + 0x34]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46123a
mov eax, dword [esp + 0x30]
cmp esi, eax
jne 0x46123a
xor ecx, ecx
jmp 0x460dad
mov eax, dword [esp + 0x18]
cmp ebp, eax
mov edi, dword [esp + 0x14]
jae 0x460da9
mov eax, ebp
mov dword [esp + 0x30], eax
cmp ebp, eax
jne 0x460e78
cmp dword [esp + 0x60], ecx
jne 0x460e78
sub dword [esp + 0x18], eax
add dword [esp + 0x2c], 1
add dword [esp + 0x3c], eax
mov edx, dword [esp + 0x13c]
mov eax, dword [esp + 0x140]
adc dword [esp + 0x40], ecx
cmp edi, 0xffffffff
mov ecx, dword [esp + 0x134]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x138]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x12c]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x130]
mov dword [esp + 0xa8], edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
je 0x460e5b
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0xa4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x460e5b
mov dword [esp + 0x14], 0xffffffff
mov edx, dword [ebx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0xe4]
push eax
mov ecx, ebx
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
call edx
jmp 0x460e8a
sub ebp, eax
sbb dword [esp + 0x60], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
lea esi, [esp + 0xe4]
mov byte [esp + 0x194], 5
call fcn.0045e8c0
mov byte [esp + 0x194], 2
mov esi, dword [esp + 0x68]
test esi, esi
je 0x460ed8
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x460ed8
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 0x460ed8
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp dword [esp + 0x18], 0
ja 0x460a10
mov eax, dword [esp + 0x38]
add dword [ebx + 0x110], eax
mov esi, dword [esp + 0x1b0]
adc dword [ebx + 0x114], 0
xor edi, edi
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp dword [esp + 0x28], edi
ja 0x460940
mov eax, dword [esp + 0x1ac]
cmp eax, edi
mov ecx, dword [esp + 0x1a8]
ja 0x4608a0
cmp ecx, edi
ja 0x460892
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x460f3e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x54]
cmp eax, edi
je 0x460f4f
push eax
call fcn.0059b877
add esp, 4
mov dword [esp + 0x194], 0xffffffff
mov esi, dword [esp + 0x1b4]
cmp esi, edi
je 0x460f8f
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x460f8f
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 0x460f8f
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov al, 1
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.005b88a9
add esp, 0x188
ret 0x1c
push edi
push 0x6190bc
lea esi, [esp + 0xd0]
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], edi
mov word [esp + 0xd4], di
call fcn.00402770
mov byte [esp + 0x194], 4
mov esi, dword [ebx]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0xcc]
push ecx
push 0x10000002
mov ecx, ebx
call edx
cmp dword [esp + 0xe0], 8
jb 0x461027
mov eax, dword [esp + 0xcc]
push eax
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x461037
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x54]
cmp eax, edi
je 0x461048
push eax
call fcn.0059b877
add esp, 4
mov dword [esp + 0x194], 0xffffffff
mov esi, dword [esp + 0x1b4]
cmp esi, edi
je 0x461088
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x461088
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x461088
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
xor al, al
jmp 0x460f91
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x46109f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0059b877
mov dword [esp + 0x198], 0xffffffff
mov esi, dword [esp + 0x1b8]
add esp, 4
cmp esi, edi
je 0x4610ec
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4610ec
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 0x4610ec
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x460f91
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x1a8]
mov ecx, dword [esp + 0x80]
sbb ecx, dword [esp + 0x1ac]
add eax, dword [esp + 0x74]
mov edx, dword [ebx]
adc ecx, dword [esp + 0x78]
push ecx
push eax
mov eax, dword [edx + 0x38]
push 0x30000003
mov ecx, ebx
call eax
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x461134
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0059b877
mov dword [esp + 0x198], 0xffffffff
mov esi, dword [esp + 0x1b8]
add esp, 4
cmp esi, edi
je 0x4610ec
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4610ec
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 0x4610ec
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x460f91
lea esi, [esp + 0xe4]
mov byte [esp + 0x194], 5
call fcn.0045e8c0
mov byte [esp + 0x194], 2
mov esi, dword [esp + 0x68]
test esi, esi
je 0x4611da
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4611da
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4611da
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0059b877
mov dword [esp + 0x198], 0xffffffff
mov esi, dword [esp + 0x1b8]
add esp, 4
test esi, esi
je 0x4610ec
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4610ec
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 0x4610ec
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x460f91
mov esi, dword [ebx]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x114]
push eax
push 0x10000003
mov ecx, ebx
call edx
lea esi, [esp + 0xe4]
mov byte [esp + 0x194], 5
call fcn.0045e8c0
mov byte [esp + 0x194], 2
mov esi, dword [esp + 0x68]
test esi, esi
je 0x4612a7
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4612a7
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 0x4612a7
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp edi, 0xffffffff
je 0x460bb4
push edi
jmp 0x460bae
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4612c6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0059b877
mov dword [esp + 0x198], 0xffffffff
mov esi, dword [esp + 0x1b8]
add esp, 4
test esi, esi
je 0x4610ec
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4610ec
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 0x4610ec
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x460f91