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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x334b0
call fcn.00591b50
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0x9e7]
mov dword [ebp - 0x40], esi
test al, al
mov dword [ebp - 0x14], ebx
je 0x55d5a0
mov eax, dword [0x68d01c]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
push ebx
push ecx
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.0053a0d0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.0055dd90
add esp, 8
test eax, eax
jne 0x55d58c
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.005adc4d
mov eax, dword [ebp - 0x14]
jmp 0x55d5a9
mov eax, dword [esi + 0x9f8]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x55d625
test byte [eax + 0xc], 1
je 0x55d625
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x55d625
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 0x55d625
lea ecx, [ebp - 0x38]
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x24]
call fcn.005a6f7f
lea edx, [ebp - 0x3c]
push str._a___d__b__Y__H:_M:_S_GMT
push edx
lea ecx, [ebp - 0x24]
call fcn.005a70b0
mov ecx, dword [esi + 0x420]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 4], 1
call fcn.0056e5f0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.005adc4d
mov byte [esi + 0x301], 1
mov eax, dword [esi + 0x870]
lea edi, [esi + 0x870]
cmp eax, ebx
je 0x55d7e0
push 0x55c870
push 0x55c850
push 0x10
lea edx, [ebp - 0x334c0]
push 0x3348
push edx
call fcn.00592283
mov ebx, 2
push 0x7f8
mov dword [ebp - 4], ebx
call fcn.005a9fe9
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x55d697
mov ecx, dword [esi]
lea edx, [esi + 0x44c]
push ecx
push edx
lea ecx, [esi + 0x20]
lea edx, [ebp - 0x334c0]
push ecx
push edx
push edi
mov ecx, eax
call fcn.00534a70
mov edi, eax
jmp 0x55d699
xor edi, edi
lea eax, [esi + 0x14]
mov dword [esi + 0x864], 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 + 0x9dc]
test eax, eax
je 0x55d6fc
mov eax, dword [esi + 0x9e0]
test eax, eax
je 0x55d6fc
mov eax, dword [esi + 0x42c]
mov ecx, dword [esi + 0x428]
test eax, eax
jl 0x55d6fc
jg 0x55d6ed
test ecx, ecx
jbe 0x55d6fc
push 1
push eax
push ecx
mov ecx, dword [esi + 0x864]
call fcn.0055a890
mov eax, dword [esi + 0x9d0]
mov ecx, dword [esi + 0x9d4]
mov edx, dword [esi + 0x9e0]
push eax
mov eax, dword [esi + 0x9dc]
push ecx
push edx
mov dl, byte [esi + 0x9cc]
xor ecx, ecx
push eax
test dl, dl
mov edx, dword [esi + 0x420]
sete cl
push ecx
push edx
mov ecx, edi
call fcn.0055a3a0
xor ebx, ebx
mov dword [esi + 0x9c8], eax
cmp eax, ebx
jne 0x55d7a2
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 + 0x9c8], eax
call fcn.00563610
mov ecx, dword [esi + 0x864]
mov eax, dword [ecx + 0x158]
mov edx, dword [ecx + 0x15c]
mov dword [esi + 0x430], eax
mov dword [esi + 0x434], edx
mov edx, dword [ecx + 0x150]
mov ebx, dword [ecx + 0x154]
mov eax, edx
or eax, ebx
je 0x55d79b
mov eax, ebx
mov dword [esi + 0x428], edx
mov dword [esi + 0x42c], eax
call fcn.0055a650
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x864], ebx
je 0x55d7bc
mov ecx, edi
call fcn.00534b30
push edi
call fcn.005aa012
add esp, 4
push 0x55c870
push 0x10
lea eax, [ebp - 0x334c0]
push 0x3348
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.00591197
jmp 0x55da09
push 0x525c00
push fcn.00525930
push 0x10
lea ecx, [ebp - 0x334c0]
push 0x3348
push ecx
call fcn.00592283
mov ebx, 4
push 0x7f8
mov dword [ebp - 4], ebx
call fcn.005a9fe9
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x55d83e
mov edx, dword [esi]
lea ecx, [esi + 0x44c]
push edx
push ecx
lea edx, [esi + 0x20]
lea ecx, [ebp - 0x334c0]
push edx
push ecx
push edi
mov ecx, eax
call fcn.00534a70
mov edi, eax
jmp 0x55d840
xor edi, edi
lea eax, [esi + 0x14]
mov dword [esi + 0x864], 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 + 0x9dc]
test eax, eax
je 0x55d8a3
mov eax, dword [esi + 0x9e0]
test eax, eax
je 0x55d8a3
mov eax, dword [esi + 0x42c]
mov ecx, dword [esi + 0x428]
test eax, eax
jl 0x55d8a3
jg 0x55d894
test ecx, ecx
jbe 0x55d8a3
push 1
push eax
push ecx
mov ecx, dword [esi + 0x864]
call fcn.0055a890
mov edx, dword [esi + 0x9d0]
mov eax, dword [esi + 0x9d4]
mov ecx, dword [esi + 0x9e0]
push edx
mov edx, dword [esi + 0x9dc]
push eax
push ecx
mov cl, byte [esi + 0x9cc]
xor eax, eax
push edx
test cl, cl
mov ecx, dword [esi + 0x420]
sete al
push eax
push ecx
mov ecx, edi
call fcn.0055a3a0
test eax, eax
mov dword [esi + 0x9c8], eax
jne 0x55d9ca
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 + 0x9c8], eax
jne 0x55d976
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x864], ebx
je 0x55d922
mov ecx, edi
call fcn.00534b30
push edi
call fcn.005aa012
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x9c8], ebx
cmp eax, ebx
je 0x55d93b
push eax
call fcn.005aa012
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.0055c2e0
push 0x525c00
push 0x10
lea ecx, [ebp - 0x334c0]
push 0x3348
push ecx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00591197
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.00563610
mov ecx, dword [esi + 0x864]
mov eax, dword [ecx + 0x158]
mov edx, dword [ecx + 0x15c]
mov dword [esi + 0x430], eax
mov dword [esi + 0x434], edx
mov edx, dword [ecx + 0x150]
mov ebx, dword [ecx + 0x154]
mov eax, edx
or eax, ebx
je 0x55d9bb
mov eax, ebx
mov dword [esi + 0x428], edx
mov dword [esi + 0x42c], eax
mov eax, dword [esi + 0x420]
test eax, eax
je 0x55d9ca
call fcn.0055a650
test edi, edi
mov dword [esi + 0x864], 0
je 0x55d9e8
mov ecx, edi
call fcn.00534b30
push edi
call fcn.005aa012
add esp, 4
push 0x525c00
push 0x10
lea edx, [ebp - 0x334c0]
push 0x3348
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00591197
xor ebx, ebx
cmp dword [esi + 0x9d8], ebx
jne 0x55dc47
cmp dword [esi + 0x9c8], ebx
jne 0x55dc47
mov al, byte [esi + 0x2f9]
test al, al
je 0x55dc47
mov al, byte [esi + 0x2fa]
test al, al
jne 0x55dc47
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 0x55db24
mov edi, dword [esi + 0x54]
cmp edi, ebx
jne 0x55da6c
lea edi, [esi + 0x58]
cmp edi, ebx
je 0x55dad2
cmp eax, ebx
je 0x55dad2
push edi
call fcn.00591712
add esp, 4
test eax, eax
je 0x55dad2
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x55dad2
push eax
call fcn.00591712
mov ecx, dword [ebp - 0x20]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, edi
jb 0x55dad2
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00401ee0
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 7
cmp eax, ebx
jne 0x55dab8
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401ee0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x55dbd7
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp edi, ebx
je 0x55dbd7
push edi
call fcn.00591712
add esp, 4
test eax, eax
je 0x55dbd7
push edi
call fcn.00591712
lea eax, [eax + eax + 2]
push eax
call fcn.005a9fe9
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x55dbde
push edi
call fcn.00591712
mov ecx, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x18], eax
push ecx
jmp 0x55dbcf
mov edi, dword [esi + 0x50]
cmp edi, ebx
je 0x55db8e
cmp eax, ebx
je 0x55db8e
push edi
call fcn.00591712
add esp, 4
test eax, eax
je 0x55db8e
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x55db8e
push eax
call fcn.00591712
mov edx, dword [ebp - 0x20]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, edi
jb 0x55db8e
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00401ee0
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 8
cmp eax, ebx
jne 0x55db77
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401ee0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x55dbd7
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp edi, ebx
je 0x55dbd7
push edi
call fcn.00591712
add esp, 4
test eax, eax
je 0x55dbd7
push edi
call fcn.00591712
lea ecx, [eax + eax + 2]
push ecx
call fcn.005a9fe9
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x55dbde
push edi
call fcn.00591712
mov edx, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x18], eax
push edx
call fcn.005918aa
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x55dbe1
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0055de50
test al, al
jne 0x55dc38
mov byte [esi + 0x2f9], al
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [esi + 0x2fa], 1
je 0x55dc0d
push eax
call fcn.005aa012
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.0055d520
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 0x55dd6a
cmp dword [esi + 0x9c8], 0x7573
jne 0x55dd39
cmp dword [esi + 0x42c], ebx
jg 0x55dd07
jl 0x55dc7c
cmp dword [esi + 0x428], ebx
ja 0x55dd07
mov eax, dword [eax + 8]
push ebx
push ebx
push 3
push ebx
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x55dd07
lea ecx, [ebp - 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x428], eax
mov dword [esi + 0x42c], ebx
cmp dword [esi + 0x428], 0xffffffff
jne 0x55dcd7
mov eax, ebx
cmp eax, ebx
jne 0x55dcd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x55dcd7
mov dword [esi + 0x428], ebx
mov dword [esi + 0x42c], ebx
jmp 0x55dd00
mov edx, dword [ebp - 0x28]
push 1
push ebx
push ebx
push edx
call fcn.00593f90
mov ecx, dword [esi + 0x428]
add ecx, eax
mov dword [esi + 0x428], ecx
mov eax, dword [esi + 0x42c]
adc eax, edx
mov dword [esi + 0x42c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x55dd30
push eax
call fcn.00591712
add esp, 4
test eax, eax
je 0x55dd30
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x48]
lea ecx, [esi + 0x304]
push edx
call fcn.005addfd
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x9c8], ebx
cmp eax, dword [esi + 0x9f8]
je 0x55dd6a
push eax
mov dword [ebp - 4], 9
call fcn.005aa012
add esp, 4
jmp 0x55dd5c
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.0055fcb0
mov eax, dword [esi + 0x9c8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret