Function at 0x45da60
Capabilities:
Check if file exists
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a7ace
mov eax, dword fs:[0]
push eax
sub esp, 0x788
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x780], eax
push ebx
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x798]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, edx
xor esi, esi
lea edx, [esp + 0x80]
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x80], esi
call fcn.00433170
mov dword [esp + 0x7a0], esi
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x45dae3
call fcn.0048b4bc
mov ebx, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x5c], eax
cmp ebx, dword [edi + 0x10]
jbe 0x45daf6
call fcn.0048b4bc
mov ecx, dword [esp + 0x5c]
mov eax, dword [edi]
push esi
push ecx
push ebx
push eax
push edi
lea ebx, [esp + 0x70]
call fcn.0045cb20
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
cmp dword [esp + 0x14], eax
je 0x45db2e
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45e32f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [edi + 0x18]
push esi
mov dword [esp + 0x7c], esi
call ebx
test eax, eax
je 0x45e32f
lea eax, [edi + 0x428]
push eax
mov dword [esp + 0x74], eax
call ebx
test eax, eax
je 0x45e32f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e32f
mov ebx, dword [esp + 0x70]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x45e32f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45db96
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45e32f
lea eax, [esp + 0x40]
push eax
call fcn.00433170
add edi, 0x220
push edi
push esi
mov byte [esp + 0x7a8], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb eax, eax
add eax, 1
je 0x45ddb9
xor eax, eax
mov ecx, 0x5c
mov word [esp + 0x574], cx
mov dword [esp + 0x578], eax
mov dword [esp + 0x57c], eax
lea edx, [esp + 0x20]
push edx
mov ecx, esi
mov byte [esp + 0x7a4], 2
call fcn.0046c8c0
push eax
lea eax, [esp + 0x1c]
push eax
mov ebx, str..
mov byte [esp + 0x7a8], 3
call fcn.00461a70
mov eax, dword [eax]
add esp, 8
lea esi, [esp + 0x11c]
call fcn.0045e760
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45dc3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x7a0], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45dc65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x57c]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x45dcbe
mov ecx, dword [esp + 0x11c]
shr ecx, 4
and ecx, 1
je 0x45dcb6
cmp word [esp + 0x148], 0x2e
jne 0x45dcb6
mov dx, word [esp + 0x14a]
test dx, dx
je 0x45dd59
cmp dx, 0x2e
jne 0x45dcb6
cmp word [esp + 0x14c], 0
je 0x45dd59
test ecx, ecx
jne 0x45dd59
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x120]
call fcn.0045e870
mov eax, dword [eax]
push str.filelist.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov eax, dword [esp + 0x18]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45dd02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x45dd52
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x120]
call fcn.0045e870
mov ebx, eax
lea edi, [esp + 0x40]
mov byte [esp + 0x7a0], 4
call fcn.0045f0c0
mov byte [esp + 0x7a0], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45dd52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x57c]
mov ecx, dword [esp + 0x578]
test ecx, ecx
je 0x45dd89
test eax, eax
je 0x45dd89
lea edx, [esp + 0x11c]
push edx
push ecx
call esi
mov dword [esp + 0x57c], eax
test eax, eax
jne 0x45dc76
mov ecx, dword [esp + 0x578]
mov byte [esp + 0x7a0], 1
mov dword [esp + 0x57c], 0
test ecx, ecx
je 0x45debe
cmp ecx, 0xffffffff
je 0x45debe
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x45debe
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x30], esi
test esi, esi
je 0x45e671
cmp esi, 0xffffffff
je 0x45e671
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.004848ce
mov edi, eax
add esp, 4
mov dword [esp + 0x7c], edi
test edi, edi
je 0x45e2ec
cmp dword [esp + 0x14], 0
je 0x45de27
mov ecx, dword [esp + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45e2ec
push 0
lea edx, [esp + 0x24]
push edx
push ebx
push edi
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45e2ec
cmp dword [esp + 0x20], ebx
jne 0x45e2ec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], 0
mov dword [esp + 0x30], 0
mov byte [ebx + edi], 0
je 0x45de80
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45e2ec
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, 0x4b4f2c
call fcn.0046c8c0
lea edx, [esp + 0x44]
push edx
push ecx
mov byte [esp + 0x7ac], 5
mov eax, esp
mov dword [esp + 0x64], esp
push eax
mov ecx, edi
call fcn.0045f3e0
mov byte [esp + 0x7ac], 1
call fcn.0045f140
add esp, 0xc
mov esi, dword [esp + 0x50]
sub esi, dword [esp + 0x4c]
sar esi, 2
mov dword [esp + 0x2c], esi
test esi, esi
je 0x45e2ec
lea ecx, [esp + 0xe4]
push ecx
call fcn.00454a80
xor edi, edi
mov byte [esp + 0x7a0], 6
mov dword [esp + 0x18], edi
test esi, esi
jle 0x45e2ba
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45df11
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45e2ba
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x4c]
sar edx, 2
cmp edi, edx
jb 0x45df25
call fcn.0048b4bc
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + edi*4]
sub eax, 0x10
call fcn.0046b5f0
add eax, 0x10
mov dword [esp + 0x10], eax
lea edi, [esp + 0x10]
mov byte [esp + 0x7a0], 7
call fcn.0045fa00
mov ebx, edi
call fcn.0045fb50
mov ebx, eax
call fcn.0045fa60
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jne 0x45df91
mov byte [esp + 0x7a0], 6
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e2a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45e2a7
mov ebx, dword [esp + 0xfc]
mov edi, dword [esp + 0xe4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
lea esi, [esp + 0xec]
call fcn.0045d0d0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x45dfc4
cmp eax, edi
je 0x45dfc9
call fcn.0048b4bc
cmp dword [esi + 4], ebx
je 0x45dfdc
mov byte [esp + 0x7a0], 6
mov eax, dword [esp + 0x10]
jmp 0x45df6c
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x58e]
push edx
mov word [esp + 0x590], cx
call fcn.0048dc10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x84]
add esp, 0xc
push eax
push ecx
lea edx, [esp + 0x58c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x584]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e296
xor eax, eax
lea ecx, [esp + 0xc0]
push ecx
push eax
lea edx, [esp + 0x58c]
push edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x45e296
mov esi, dword [esp + 0xe0]
mov edi, dword [esp + 0xdc]
lea eax, [esp + 0x10]
push eax
lea ebx, [esp + 0xe8]
call fcn.0045d890
mov dword [eax], esi
mov dword [eax + 4], edi
xor edi, edi
cmp dword [ebp + 8], edi
jbe 0x45e289
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
lea ecx, [esp + 0x59c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
je 0x45e280
cmp esi, 0xffffffff
je 0x45e280
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xa0]
push ecx
push esi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xcc], edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
call fcn.0048c4ce
mov ecx, dword [esp + 0xa4]
sub esp, 0xc
mov edi, eax
mov eax, esp
mov ebx, edx
mov edx, dword [esp + 0xb4]
mov dword [eax], ecx
mov ecx, dword [esp + 0xb8]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xbc]
mov dword [eax + 8], ecx
lea esi, [esp + 0x74]
mov dword [eax + 0xc], edx
call fcn.0045d150
lea eax, [esp + 0x114]
push eax
push ebx
push edi
call fcn.0045d190
movzx ecx, word [esp + 0x126]
movzx edx, word [esp + 0x122]
movzx eax, word [esp + 0x120]
add esp, 0x1c
push ebx
push edi
push ecx
push edx
push eax
lea ecx, [esp + 0xc8]
push str.S_MR
push ecx
call fcn.00468430
add esp, 0x1c
lea ecx, [esp + 0xb4]
call fcn.004710f0
mov esi, dword [esp + 0x68]
movzx eax, word [esp + 0xa6]
mov edx, dword [esp + 0x64]
movzx ecx, word [esp + 0xa2]
push esi
push edx
movzx edx, word [esp + 0xa8]
push eax
push ecx
push edx
lea eax, [esp + 0xc4]
push 0x4b5250
push eax
call fcn.00468430
add esp, 0x1c
lea ecx, [esp + 0xb0]
call fcn.004710f0
sub edi, dword [esp + 0x64]
sbb ebx, esi
push ebx
push edi
lea ecx, [esp + 0x60]
push 0x4b5284
push ecx
call fcn.00468430
add esp, 0x10
lea ecx, [esp + 0x58]
call fcn.004710f0
test ebx, ebx
jl 0x45e289
jg 0x45e250
test edi, edi
jb 0x45e289
xor eax, eax
cmp ebx, eax
jg 0x45e289
jl 0x45e25d
cmp edi, dword [ebp + 8]
jae 0x45e289
lea edx, [esp + 0x584]
push edx
lea eax, [esp + 0x28]
push 0x4b5294
push eax
call fcn.00468430
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.004710f0
lea edi, [esp + 0x80]
jmp 0x45e28d
mov edi, dword [esp + 0x28]
lea ebx, [esp + 0x10]
call fcn.0045f0c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x7a0], 6
call fcn.004710f0
mov edi, dword [esp + 0x18]
inc edi
cmp edi, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
jl 0x45def8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45e49a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x45e49a
lea ecx, [esp + 0xe4]
push ecx
mov byte [esp + 0x7a4], 1
call fcn.0045d070
lea esi, [esp + 0x40]
mov byte [esp + 0x7a0], 0
call fcn.0040e790
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x45e30e
push eax
call fcn.0048c465
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x45e31d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], 0
je 0x45e32f
mov ecx, dword [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [esp + 0x90]
sub ebx, dword [esp + 0x8c]
sar ebx, 2
cmp dword [esp + 0x1c], 0
je 0x45e3d2
test ebx, ebx
jle 0x45e3d2
mov edx, dword [esp + 0x28]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
add edx, 0x428
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x45e3d2
cmp edi, 0xffffffff
je 0x45e3d2
xor esi, esi
test ebx, ebx
jle 0x45e3cb
jmp 0x45e390
mov eax, dword [esp + 0x90]
sub eax, dword [esp + 0x8c]
sar eax, 2
cmp esi, eax
jb 0x45e3aa
call fcn.0048b4bc
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx + esi*4]
push eax
push edi
call fcn.0045d990
push 0x4b4f2c
push edi
call fcn.0045d990
inc esi
cmp esi, ebx
jl 0x45e390
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x74]
xor ebx, ebx
cmp ecx, ebx
je 0x45e3f5
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x45e3f5
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esp + 0x7a0], 0xffffffff
mov esi, dword [esp + 0x8c]
cmp esi, ebx
je 0x45e44b
mov edi, dword [esp + 0x90]
cmp esi, edi
je 0x45e43b
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x45e416
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0048b128
add esp, 4
mov edx, dword [esp + 0x80]
push edx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call fcn.0048b128
mov eax, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esp + 0x798]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x780]
xor ecx, esp
call fcn.0048b133
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
mov dword [esp + 0x1c], 0
sar eax, 2
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x45e5ff
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x2c], 0
jle 0x45e4e0
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x45e4e0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45e4e0
push 0
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [esp + 0x28]
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
sar edx, 2
cmp edi, edx
jb 0x45e4f6
call fcn.0048b4bc
mov eax, dword [esi + 0xc]
lea eax, [eax + edi*4]
mov eax, dword [eax]
sub eax, 0x10
call fcn.0046b5f0
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x58e]
mov byte [esp + 0x7a8], 8
push edx
mov word [esp + 0x590], cx
call fcn.0048dc10
mov eax, dword [esp + 0x84]
add esp, 0xc
push esi
push eax
lea ecx, [esp + 0x58c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x584]
push edx
lea eax, [esp + 0x28]
push 0x4b52b0
push eax
call fcn.00468430
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e586
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x584]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x45e5b8
lea edx, [esp + 0x18]
push edx
lea ebx, [esp + 0xe8]
call fcn.0045d890
mov ecx, dword [eax]
add dword [esp + 0x34], ecx
mov edx, dword [eax + 4]
adc dword [esp + 0x38], edx
jmp 0x45e5cc
lea ebx, [esp + 0x18]
lea edi, [esp + 0x80]
call fcn.0045f0c0
mov edi, dword [esp + 0x1c]
add esi, 0xfffffff0
mov byte [esp + 0x7a0], 6
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45e5f0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
inc edi
cmp edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], edi
jl 0x45e4bf
mov dword [esp + 0x1c], 1
lea esi, [esp + 0xe4]
mov byte [esp + 0x7a0], 9
call fcn.0045d030
mov ecx, dword [esp + 0xe4]
push ecx
call fcn.0048b128
mov byte [esp + 0x7a4], 0
mov eax, dword [esp + 0x50]
xor esi, esi
add esp, 4
cmp eax, esi
je 0x45e653
mov edi, dword [esp + 0x50]
call fcn.004602b0
mov edx, dword [esp + 0x4c]
push edx
call fcn.0048b128
add esp, 4
mov eax, dword [esp + 0x40]
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call fcn.0048b128
add esp, 4
jmp 0x45e2fd
lea esi, [esp + 0x40]
mov byte [esp + 0x7a0], 0
call fcn.0040e790
jmp 0x45e30e