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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acb08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x32eb0
call fcn.0056ae30
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0x88b]
mov dword [ebp - 0x40], esi
test al, al
mov dword [ebp - 0x14], ebx
je 0x539730
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
push ebx
push ecx
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.00519510
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.00539ee0
add esp, 8
test eax, eax
jne 0x53971c
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00586b33
mov eax, dword [ebp - 0x14]
jmp 0x539739
mov eax, dword [esi + 0x894]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x5397b5
test byte [eax + 0xc], 1
je 0x5397b5
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5397b5
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 0x5397b5
lea ecx, [ebp - 0x38]
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x24]
call fcn.0057fe62
lea edx, [ebp - 0x3c]
push str._a___d__b__Y__H:_M:_S_GMT
push edx
lea ecx, [ebp - 0x24]
call fcn.0057ff93
mov ecx, dword [esi + 0x400]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 4], 1
call fcn.00548d80
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00586b33
mov byte [esi + 0x2df], 1
mov eax, dword [esi + 0x750]
lea edi, [esi + 0x750]
cmp eax, ebx
je 0x539970
push 0x538a90
push 0x538a70
push 0x10
lea edx, [ebp - 0x32ec0]
push 0x32e8
push edx
call fcn.0056b673
mov ebx, 2
push 0x7e8
mov dword [ebp - 4], ebx
call fcn.00582ecc
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x539827
mov ecx, dword [esi]
lea edx, [esi + 0x42c]
push ecx
push edx
lea ecx, [esi + 0x20]
lea edx, [ebp - 0x32ec0]
push ecx
push edx
push edi
mov ecx, eax
call fcn.00514320
mov edi, eax
jmp 0x539829
xor edi, edi
lea eax, [esi + 0x14]
mov dword [esi + 0x744], edi
mov dword [edi + 0x10], eax
mov dword [edi + 0xb8], eax
lea eax, [esi + 0x18]
lea ecx, [esi + 0x1c]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
mov dword [edi + 0x118], edx
mov eax, dword [esi + 0x880]
test eax, eax
je 0x53988c
mov eax, dword [esi + 0x884]
test eax, eax
je 0x53988c
mov eax, dword [esi + 0x40c]
mov ecx, dword [esi + 0x408]
test eax, eax
jl 0x53988c
jg 0x53987d
test ecx, ecx
jbe 0x53988c
push 1
push eax
push ecx
mov ecx, dword [esi + 0x744]
call fcn.00536ae0
mov eax, dword [esi + 0x874]
mov ecx, dword [esi + 0x878]
mov edx, dword [esi + 0x884]
push eax
mov eax, dword [esi + 0x880]
push ecx
push edx
mov dl, byte [esi + 0x870]
xor ecx, ecx
push eax
test dl, dl
mov edx, dword [esi + 0x400]
sete cl
push ecx
push edx
mov ecx, edi
call fcn.00536610
xor ebx, ebx
mov dword [esi + 0x86c], eax
cmp eax, ebx
jne 0x539932
mov eax, dword [esi + 8]
mov edx, dword [edi]
mov ecx, edi
mov dword [edi + 0xf4], eax
call dword [edx + 8]
mov ecx, esi
mov dword [esi + 0x86c], eax
call fcn.0053f2e0
mov ecx, dword [esi + 0x744]
mov eax, dword [ecx + 0x148]
mov edx, dword [ecx + 0x14c]
mov dword [esi + 0x410], eax
mov dword [esi + 0x414], edx
mov edx, dword [ecx + 0x140]
mov ebx, dword [ecx + 0x144]
mov eax, edx
or eax, ebx
je 0x53992b
mov eax, ebx
mov dword [esi + 0x408], edx
mov dword [esi + 0x40c], eax
call fcn.005368b0
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x744], ebx
je 0x53994c
mov ecx, edi
call fcn.005143e0
push edi
call fcn.00582ef5
add esp, 4
push 0x538a90
push 0x10
lea eax, [ebp - 0x32ec0]
push 0x32e8
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.0056a558
jmp 0x539b99
push 0x5070c0
push fcn.00506e20
push 0x10
lea ecx, [ebp - 0x32ec0]
push 0x32e8
push ecx
call fcn.0056b673
mov ebx, 4
push 0x7e8
mov dword [ebp - 4], ebx
call fcn.00582ecc
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x5399ce
mov edx, dword [esi]
lea ecx, [esi + 0x42c]
push edx
push ecx
lea edx, [esi + 0x20]
lea ecx, [ebp - 0x32ec0]
push edx
push ecx
push edi
mov ecx, eax
call fcn.00514320
mov edi, eax
jmp 0x5399d0
xor edi, edi
lea eax, [esi + 0x14]
mov dword [esi + 0x744], edi
mov dword [edi + 0x10], eax
mov dword [edi + 0xb8], eax
lea edx, [esi + 0x18]
lea eax, [esi + 0x1c]
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
mov dword [edi + 0x118], ecx
mov eax, dword [esi + 0x880]
test eax, eax
je 0x539a33
mov eax, dword [esi + 0x884]
test eax, eax
je 0x539a33
mov eax, dword [esi + 0x40c]
mov ecx, dword [esi + 0x408]
test eax, eax
jl 0x539a33
jg 0x539a24
test ecx, ecx
jbe 0x539a33
push 1
push eax
push ecx
mov ecx, dword [esi + 0x744]
call fcn.00536ae0
mov edx, dword [esi + 0x874]
mov eax, dword [esi + 0x878]
mov ecx, dword [esi + 0x884]
push edx
mov edx, dword [esi + 0x880]
push eax
push ecx
mov cl, byte [esi + 0x870]
xor eax, eax
push edx
test cl, cl
mov ecx, dword [esi + 0x400]
sete al
push eax
push ecx
mov ecx, edi
call fcn.00536610
test eax, eax
mov dword [esi + 0x86c], eax
jne 0x539b5a
mov edx, dword [esi + 8]
mov eax, dword [edi]
mov ecx, edi
mov dword [edi + 0xf4], edx
call dword [eax + 8]
cmp eax, 0x7563
mov dword [esi + 0x86c], eax
jne 0x539b06
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x744], ebx
je 0x539ab2
mov ecx, edi
call fcn.005143e0
push edi
call fcn.00582ef5
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x86c], ebx
cmp eax, ebx
je 0x539acb
push eax
call fcn.00582ef5
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.00538500
push 0x5070c0
push 0x10
lea ecx, [ebp - 0x32ec0]
push 0x32e8
push ecx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0056a558
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.0053f2e0
mov ecx, dword [esi + 0x744]
mov eax, dword [ecx + 0x148]
mov edx, dword [ecx + 0x14c]
mov dword [esi + 0x410], eax
mov dword [esi + 0x414], edx
mov edx, dword [ecx + 0x140]
mov ebx, dword [ecx + 0x144]
mov eax, edx
or eax, ebx
je 0x539b4b
mov eax, ebx
mov dword [esi + 0x408], edx
mov dword [esi + 0x40c], eax
mov eax, dword [esi + 0x400]
test eax, eax
je 0x539b5a
call fcn.005368b0
test edi, edi
mov dword [esi + 0x744], 0
je 0x539b78
mov ecx, edi
call fcn.005143e0
push edi
call fcn.00582ef5
add esp, 4
push 0x5070c0
push 0x10
lea edx, [ebp - 0x32ec0]
push 0x32e8
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.0056a558
xor ebx, ebx
cmp dword [esi + 0x87c], ebx
jne 0x539d81
cmp dword [esi + 0x86c], ebx
jne 0x539d81
mov al, byte [esi + 0x2d7]
test al, al
je 0x539d81
mov al, byte [esi + 0x2d8]
test al, al
jne 0x539d81
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 0x539cb5
mov edi, dword [esi + 0x54]
cmp edi, ebx
jne 0x539bfc
lea edi, [esi + 0x58]
cmp edi, ebx
je 0x539c62
cmp eax, ebx
je 0x539c62
push edi
call fcn.0056aeae
add esp, 4
test eax, eax
je 0x539c62
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x539c62
push eax
call fcn.0056aeae
mov ecx, dword [ebp - 0x20]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, edi
jb 0x539c62
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00402e20
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 7
cmp eax, ebx
jne 0x539c48
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402e20
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x539d0d
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp edi, ebx
je 0x539d0d
push edi
call fcn.0056aeae
add esp, 4
test eax, eax
je 0x539d0d
push edi
call fcn.0056aeae
lea eax, [eax + eax + 2]
push eax
call fcn.00582ecc
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x539d14
push edi
call fcn.0056aeae
mov ecx, dword [ebp - 0x20]
push edi
push ecx
mov dword [ebp - 0x18], eax
call fcn.0056ae89
add esp, 0xc
jmp 0x539d0d
mov ebx, dword [esi + 0x50]
lea ecx, [ebp - 0x20]
call fcn.00401070
test ebx, ebx
je 0x539d0d
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x539d0d
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push ebx
push eax
push eax
call edi
test eax, eax
mov dword [ebp - 0x18], eax
je 0x539d0d
lea edx, [eax + eax + 2]
push edx
call fcn.00582ecc
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x539d14
mov ecx, dword [ebp - 0x18]
push ecx
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x539d17
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00539fa0
test al, al
jne 0x539d72
mov byte [esi + 0x2d7], al
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [esi + 0x2d8], 1
je 0x539d47
push eax
call fcn.00582ef5
add esp, 4
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.005396b0
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 ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x539eb7
cmp dword [esi + 0x86c], 0x7573
jne 0x539e86
mov eax, dword [esi + 0x40c]
test eax, eax
jg 0x539e4f
jl 0x539dba
mov eax, dword [esi + 0x408]
test eax, eax
ja 0x539e4f
mov edx, dword [ebx + 8]
push 0
push 0
push 3
push 0
push 1
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x539e4c
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ebx, ebx
mov dword [esi + 0x408], eax
mov dword [esi + 0x40c], ebx
mov eax, dword [esi + 0x408]
cmp eax, 0xffffffff
jne 0x539e1c
mov eax, ebx
cmp eax, ebx
jne 0x539e1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x539e1c
mov dword [esi + 0x408], ebx
mov dword [esi + 0x40c], ebx
jmp 0x539e45
mov ecx, dword [ebp - 0x28]
push 1
push ebx
push ebx
push ecx
call fcn.0056d280
mov ecx, dword [esi + 0x408]
add ecx, eax
mov dword [esi + 0x408], ecx
mov eax, dword [esi + 0x40c]
adc eax, edx
mov dword [esi + 0x40c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x48]
test edx, edx
je 0x539e7c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x539e7c
push edx
lea edx, [esi + 0x2e0]
push 0x636fa0
push edx
call fcn.0057f8fb
mov ebx, dword [ebp - 0x14]
add esp, 0xc
mov dword [esi + 0x86c], 0
cmp ebx, dword [esi + 0x894]
je 0x539eb7
push ebx
mov dword [ebp - 4], 8
call fcn.00582ef5
add esp, 4
jmp 0x539ea9
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.0053be70
mov eax, dword [esi + 0x86c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret