Function at 0x5a3830
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x626320
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x68930
call fcn.005de290
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0xa53]
mov dword [ebp - 0x40], esi
test al, al
mov dword [ebp - 0x14], ebx
je 0x5a38b0
mov eax, dword [0x6e7b6c]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
push ebx
push ecx
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.00579ad0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.005a4300
add esp, 8
test eax, eax
jne 0x5a389c
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.005fa859
mov eax, dword [ebp - 0x14]
jmp 0x5a38b9
mov eax, dword [esi + 0xa68]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x5a3935
test byte [eax + 0xc], 1
je 0x5a3935
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5a3935
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x38]
add eax, 0x20
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x5a3935
lea ecx, [ebp - 0x38]
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x24]
call fcn.005f37a2
lea edx, [ebp - 0x3c]
push 0x6df758
push edx
lea ecx, [ebp - 0x24]
call fcn.005f38d3
mov ecx, dword [esi + 0x478]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 4], 1
call fcn.005ba600
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.005fa859
mov byte [esi + 0x33b], 1
mov eax, dword [esi + 0x8d4]
lea edi, [esi + 0x8d4]
cmp eax, ebx
je 0x5a3c24
push 0x5a29e0
push 0x5a29c0
push 0x20
lea edx, [ebp - 0x68940]
push 0x3448
push edx
call fcn.005decd1
mov ebx, 2
push 0x850
mov dword [ebp - 4], ebx
call fcn.005f6c5c
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x5a39a7
mov ecx, dword [esi]
lea edx, [esi + 0x4a4]
push ecx
push edx
lea ecx, [esi + 0x20]
lea edx, [ebp - 0x68940]
push ecx
push edx
push edi
mov ecx, eax
call fcn.00571800
mov edi, eax
jmp 0x5a39a9
xor edi, edi
mov eax, dword [esi + 4]
mov dword [esi + 0x8c8], edi
mov dword [edi + 0x180], eax
lea eax, [esi + 0x10]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [edi + 0x234], esi
mov dword [edi + 0x10], eax
mov dword [edi + 0x100], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x160], eax
mov eax, dword [esi + 0xa48]
test eax, eax
mov byte [ebp - 4], bl
je 0x5a3a1b
mov eax, dword [esi + 0xa4c]
test eax, eax
je 0x5a3a1b
mov eax, dword [esi + 0x484]
mov ecx, dword [esi + 0x480]
test eax, eax
jl 0x5a3a1b
jg 0x5a3a0c
test ecx, ecx
jbe 0x5a3a1b
push 1
push eax
push ecx
mov ecx, dword [esi + 0x8c8]
call fcn.005a05c0
mov ecx, dword [esi + 0xa3c]
mov edx, dword [esi + 0xa40]
mov eax, dword [esi + 0xa4c]
push ecx
mov ecx, dword [esi + 0xa48]
push edx
push eax
mov al, byte [esi + 0xa38]
xor edx, edx
push ecx
test al, al
mov eax, dword [esi + 0x478]
mov ecx, edi
sete dl
push edx
push eax
call fcn.0059ff60
test eax, eax
mov dword [esi + 0xa34], eax
jne 0x5a3be4
mov ecx, dword [esi + 8]
mov edx, dword [edi]
mov dword [edi + 0x13c], ecx
mov ecx, edi
call dword [edx + 8]
cmp eax, 0x7583
mov dword [esi + 0xa34], eax
jne 0x5a3aee
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8c8], ebx
je 0x5a3a9a
mov ecx, edi
call fcn.005718c0
push edi
call fcn.005f6c85
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa34], ebx
cmp eax, ebx
je 0x5a3ab3
push eax
call fcn.005f6c85
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005a3830
mov esi, eax
push 0x5a29e0
push 0x20
lea eax, [ebp - 0x68940]
push 0x3448
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.005ddad7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x7581
jne 0x5a3b65
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8c8], ebx
je 0x5a3b11
mov ecx, edi
call fcn.005718c0
push edi
call fcn.005f6c85
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa34], ebx
cmp eax, ebx
je 0x5a3b2a
push eax
call fcn.005f6c85
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005a9840
push 0x5a29e0
push 0x20
lea ecx, [ebp - 0x68940]
push 0x3448
push ecx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.005ddad7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.005aba40
mov ecx, dword [esi + 0x8c8]
mov eax, dword [ecx + 0x1b0]
mov edx, dword [ecx + 0x1b4]
mov dword [esi + 0x488], eax
mov dword [esi + 0x48c], edx
mov edx, dword [ecx + 0x1a8]
mov ebx, dword [ecx + 0x1ac]
mov eax, edx
or eax, ebx
je 0x5a3bb3
cmp dword [esi + 0x318], 0x20
je 0x5a3bb3
mov eax, ebx
mov dword [esi + 0x480], edx
mov dword [esi + 0x484], eax
mov eax, dword [esi + 0x318]
test eax, eax
je 0x5a3bd5
mov edx, dword [ecx + 0x188]
mov eax, dword [ecx + 0x18c]
mov dword [esi + 0x490], edx
mov dword [esi + 0x494], eax
mov eax, dword [esi + 0x49c]
test eax, eax
jne 0x5a3be4
call fcn.005a02a0
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8c8], ebx
je 0x5a3c00
mov ecx, edi
call fcn.005718c0
push edi
call fcn.005f6c85
add esp, 4
push 0x5a29e0
push 0x20
lea ecx, [ebp - 0x68940]
push 0x3448
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.005ddad7
jmp 0x5a3f7f
push fcn.0055e800
push fcn.0055e4d0
push 0x20
lea edx, [ebp - 0x68940]
push 0x3448
push edx
call fcn.005decd1
mov ebx, 4
push 0x850
mov dword [ebp - 4], ebx
call fcn.005f6c5c
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x5a3c82
mov ecx, dword [esi]
lea edx, [esi + 0x4a4]
push ecx
push edx
lea ecx, [esi + 0x20]
lea edx, [ebp - 0x68940]
push ecx
push edx
push edi
mov ecx, eax
call fcn.00571800
mov edi, eax
jmp 0x5a3c84
xor edi, edi
mov eax, dword [esi + 4]
mov dword [esi + 0x8c8], edi
mov dword [edi + 0x180], eax
lea eax, [esi + 0x10]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [edi + 0x234], esi
mov dword [edi + 0x10], eax
mov dword [edi + 0x100], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x160], eax
mov eax, dword [esi + 0xa48]
test eax, eax
mov byte [ebp - 4], bl
je 0x5a3cf6
mov eax, dword [esi + 0xa4c]
test eax, eax
je 0x5a3cf6
mov eax, dword [esi + 0x484]
mov ecx, dword [esi + 0x480]
test eax, eax
jl 0x5a3cf6
jg 0x5a3ce7
test ecx, ecx
jbe 0x5a3cf6
push 1
push eax
push ecx
mov ecx, dword [esi + 0x8c8]
call fcn.005a05c0
mov ecx, dword [esi + 0xa3c]
mov edx, dword [esi + 0xa40]
mov eax, dword [esi + 0xa4c]
push ecx
mov ecx, dword [esi + 0xa48]
push edx
push eax
mov al, byte [esi + 0xa38]
xor edx, edx
push ecx
test al, al
mov eax, dword [esi + 0x478]
mov ecx, edi
sete dl
push edx
push eax
call fcn.0059ff60
test eax, eax
mov dword [esi + 0xa34], eax
jne 0x5a3f40
mov ecx, dword [esi + 8]
mov edx, dword [edi]
mov dword [edi + 0x13c], ecx
mov ecx, edi
call dword [edx + 8]
cmp eax, 0x7583
mov dword [esi + 0xa34], eax
jne 0x5a3dc9
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8c8], ebx
je 0x5a3d75
mov ecx, edi
call fcn.005718c0
push edi
call fcn.005f6c85
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa34], ebx
cmp eax, ebx
je 0x5a3d8e
push eax
call fcn.005f6c85
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005a3830
mov esi, eax
push fcn.0055e800
push 0x20
lea eax, [ebp - 0x68940]
push 0x3448
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.005ddad7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x7563
jne 0x5a3e40
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8c8], ebx
je 0x5a3dec
mov ecx, edi
call fcn.005718c0
push edi
call fcn.005f6c85
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa34], ebx
cmp eax, ebx
je 0x5a3e05
push eax
call fcn.005f6c85
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005a23b0
push fcn.0055e800
push 0x20
lea ecx, [ebp - 0x68940]
push 0x3448
push ecx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.005ddad7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x7581
jne 0x5a3eb7
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x8c8], ebx
je 0x5a3e63
mov ecx, edi
call fcn.005718c0
push edi
call fcn.005f6c85
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa34], ebx
cmp eax, ebx
je 0x5a3e7c
push eax
call fcn.005f6c85
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005a9840
push fcn.0055e800
push 0x20
lea edx, [ebp - 0x68940]
push 0x3448
push edx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.005ddad7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.005aba40
mov ecx, dword [esi + 0x8c8]
mov eax, dword [ecx + 0x1b0]
mov edx, dword [ecx + 0x1b4]
mov dword [esi + 0x488], eax
mov dword [esi + 0x48c], edx
mov edx, dword [ecx + 0x1a8]
mov ebx, dword [ecx + 0x1ac]
mov eax, edx
or eax, ebx
je 0x5a3f05
cmp dword [esi + 0x318], 0x20
je 0x5a3f05
mov eax, ebx
mov dword [esi + 0x480], edx
mov dword [esi + 0x484], eax
mov eax, dword [esi + 0x318]
test eax, eax
je 0x5a3f27
mov eax, dword [ecx + 0x188]
mov edx, dword [ecx + 0x18c]
mov dword [esi + 0x490], eax
mov dword [esi + 0x494], edx
mov eax, dword [esi + 0x478]
test eax, eax
je 0x5a3f40
mov eax, dword [esi + 0x49c]
test eax, eax
jne 0x5a3f40
call fcn.005a02a0
test edi, edi
mov dword [esi + 0x8c8], 0
je 0x5a3f5e
mov ecx, edi
call fcn.005718c0
push edi
call fcn.005f6c85
add esp, 4
push fcn.0055e800
push 0x20
lea eax, [ebp - 0x68940]
push 0x3448
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.005ddad7
xor ebx, ebx
cmp dword [esi + 0xa44], ebx
jne 0x5a41bd
cmp dword [esi + 0xa34], ebx
jne 0x5a41bd
mov al, byte [esi + 0x333]
test al, al
je 0x5a41bd
mov al, byte [esi + 0x334]
test al, al
jne 0x5a41bd
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], bx
mov ecx, dword [esi + 0xcc]
mov dword [ebp - 4], 6
cmp ecx, ebx
je 0x5a409a
mov edi, dword [esi + 0x54]
cmp edi, ebx
jne 0x5a3fe2
lea edi, [esi + 0x58]
cmp edi, ebx
je 0x5a4048
cmp eax, ebx
je 0x5a4048
push edi
call fcn.005de123
add esp, 4
test eax, eax
je 0x5a4048
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x5a4048
push eax
call fcn.005de123
mov ecx, dword [ebp - 0x20]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, edi
jb 0x5a4048
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.004023e0
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 7
cmp eax, ebx
jne 0x5a402e
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.004023e0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x5a414d
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp edi, ebx
je 0x5a414d
push edi
call fcn.005de123
add esp, 4
test eax, eax
je 0x5a414d
push edi
call fcn.005de123
lea eax, [eax + eax + 2]
push eax
call fcn.005f6c5c
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x5a4154
push edi
call fcn.005de123
mov ecx, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x18], eax
push ecx
jmp 0x5a4145
mov edi, dword [esi + 0x50]
cmp edi, ebx
je 0x5a4104
cmp eax, ebx
je 0x5a4104
push edi
call fcn.005de123
add esp, 4
test eax, eax
je 0x5a4104
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x5a4104
push eax
call fcn.005de123
mov edx, dword [ebp - 0x20]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, edi
jb 0x5a4104
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.004023e0
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 8
cmp eax, ebx
jne 0x5a40ed
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.004023e0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x5a414d
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp edi, ebx
je 0x5a414d
push edi
call fcn.005de123
add esp, 4
test eax, eax
je 0x5a414d
push edi
call fcn.005de123
lea ecx, [eax + eax + 2]
push ecx
call fcn.005f6c5c
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x5a4154
push edi
call fcn.005de123
mov edx, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x18], eax
push edx
call fcn.005de2e9
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5a4157
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.005a43c0
test al, al
jne 0x5a41ae
mov byte [esi + 0x333], al
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [esi + 0x334], 1
je 0x5a4183
push eax
call fcn.005f6c85
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.005a3830
lea ecx, [ebp - 0x20]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00401070
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00401070
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x5a42e0
cmp dword [esi + 0xa34], 0x7573
jne 0x5a42af
cmp dword [esi + 0x484], ebx
jg 0x5a427d
jl 0x5a41f2
cmp dword [esi + 0x480], ebx
ja 0x5a427d
mov eax, dword [eax + 8]
push ebx
push ebx
push 3
push ebx
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5a427d
lea ecx, [ebp - 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x480], eax
mov dword [esi + 0x484], ebx
cmp dword [esi + 0x480], 0xffffffff
jne 0x5a424d
mov eax, ebx
cmp eax, ebx
jne 0x5a424d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x5a424d
mov dword [esi + 0x480], ebx
mov dword [esi + 0x484], ebx
jmp 0x5a4276
mov edx, dword [ebp - 0x28]
push 1
push ebx
push ebx
push edx
call fcn.005e09d0
mov ecx, dword [esi + 0x480]
add ecx, eax
mov dword [esi + 0x480], ecx
mov eax, dword [esi + 0x484]
adc eax, edx
mov dword [esi + 0x484], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x5a42a6
push eax
call fcn.005de123
add esp, 4
test eax, eax
je 0x5a42a6
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x48]
lea ecx, [esi + 0x34c]
push edx
call fcn.005faa09
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa34], ebx
cmp eax, dword [esi + 0xa68]
je 0x5a42e0
push eax
mov dword [ebp - 4], 9
call fcn.005f6c85
add esp, 4
jmp 0x5a42d2
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.005a7320
mov eax, dword [esi + 0xa34]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret