Function at 0x53d170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64d3f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x1c8]
mov dword [ebp - 0x18], esi
cmp eax, 2
mov dword [ebp - 4], ebx
jne 0x53d5ff
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x24], bx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.0053c5a0
cmp dword [0x6fcacc], ebx
je 0x53d1df
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x53d1d3
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x53d1fc
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x53d1e9
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.004a5e30
add esp, 8
cmp eax, ebx
jne 0x53d5f3
xor eax, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], bx
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 2
cmp ecx, ebx
jne 0x53d216
lea ecx, [ebp - 0x24]
mov esi, dword [0x6fdc00]
mov edi, dword [0x6fca90]
cmp esi, ebx
je 0x53d2e3
cmp ecx, ebx
je 0x53d2e3
push ecx
lea ecx, [ebp - 0x64]
call fcn.00401ee0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00401070
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x48], bx
push edi
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.004027e0
mov esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x64]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
cmp edx, ebx
mov dword [ebp - 0x34], edx
je 0x53d2c8
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x64]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x34]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401070
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x53d2ea
lea eax, [ebp - 0x30]
mov edx, dword [0x6fd81c]
push 4
push edx
push eax
push ebx
call fcn.00457200
add esp, 0x10
cmp eax, 6
jne 0x53d598
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x53d310
lea eax, [ebp - 0x24]
push eax
call fcn.00609a4e
mov ecx, dword [ebp - 0x28]
add esp, 4
cmp ecx, ebx
mov edx, ecx
jne 0x53d325
lea edx, [ebp - 0x24]
cmp word [edx + eax*2 - 2], 0x5c
je 0x53d3c6
mov eax, 0x6c91c0
test eax, eax
je 0x53d3c6
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x53d3c3
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x53d35f
push eax
call fcn.00609a4e
add esp, 4
mov esi, eax
jmp 0x53d361
xor esi, esi
push 0x6c91c0
call fcn.00609a4e
add eax, esi
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x53d3c3
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x53d39e
push eax
push esi
call fcn.00609a95
push 0x6c91c0
push esi
call fcn.00609a6b
add esp, 0x10
jmp 0x53d3ac
push 0x6c91c0
push esi
call fcn.00609a95
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00401070
push esi
mov dword [ebp - 0x28], esi
call fcn.00609a4e
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
jne 0x53d3cd
lea ecx, [ebp - 0x24]
add ecx, 6
push 0x5c
push ecx
call fcn.0060a17b
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x53d5e4
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x53d3ef
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x3c], bx
call fcn.00401f20
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 4], 5
cmp ecx, ebx
jne 0x53d410
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x53d41a
lea eax, [ebp - 0x24]
mov edx, esi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], bx
mov eax, dword [ebp - 0x40]
cmp eax, ebx
jne 0x53d42e
lea eax, [ebp - 0x3c]
push 1
push eax
call fcn.004a5e30
add esp, 8
cmp eax, ebx
jne 0x53d5c3
mov eax, dword [ebp - 0x40]
cmp eax, ebx
jne 0x53d44b
lea eax, [ebp - 0x3c]
push 1
push eax
call fcn.004a6010
add esp, 8
cmp eax, ebx
jne 0x53d5c3
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x48], bx
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0x400
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov esi, dword [0x6fdbfc]
mov edi, dword [0x6fca90]
cmp esi, ebx
je 0x53d555
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x53d558
push eax
lea ecx, [ebp - 0x70]
call fcn.00401ee0
mov bl, 7
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x64]
call fcn.004027c0
push edi
push esi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 8
call fcn.004027e0
mov esi, dword [ebp - 0x5c]
lea ecx, [ebp - 0x70]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x4c], edx
je 0x53d53e
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x70]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x64]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x4c]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.00401070
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x53d569
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x18]
push 0x30
push 0x6c9094
push eax
mov eax, dword [edx + 0x1c]
push eax
call fcn.00457200
add esp, 0x10
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401070
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 2
push 0x5c
push esi
call fcn.0060a17b
add esp, 8
lea ecx, [ebp - 0x40]
mov esi, eax
mov byte [ebp - 4], 2
call fcn.00401070
jmp 0x53d3dd
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00401070
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, dword [esi + 0x5c]
mov byte [ebp - 0x11], 0
add eax, 0x298
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x53d614
lea ecx, [eax + 4]
push ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x54], bx
call fcn.00401f20
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 9
mov eax, dword [edi + 0x5c]
mov cl, byte [eax + 0x2b9]
mov esi, dword [eax + 0x294]
mov bl, byte [eax + 0x2a4]
mov byte [ebp - 0x12], cl
mov ecx, edi
call fcn.0053ca60
mov eax, dword [edi + 0x5c]
cmp esi, dword [eax + 0x294]
jne 0x53d690
cmp esi, 2
jne 0x53d694
mov ecx, dword [eax + 0x298]
test ecx, ecx
jne 0x53d66d
lea ecx, [eax + 0x29c]
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x53d677
lea eax, [ebp - 0x54]
push ecx
push eax
call fcn.0060c3d3
add esp, 8
test eax, eax
jne 0x53d690
mov edx, dword [edi + 0x5c]
cmp bl, byte [edx + 0x2a4]
je 0x53d694
mov byte [ebp - 0x11], 1
mov eax, dword [edi + 0x5c]
mov cl, byte [ebp - 0x12]
cmp cl, byte [eax + 0x2b9]
jne 0x53d6ad
mov cl, byte [ebp - 0x11]
test cl, cl
je 0x53d795
mov ecx, dword [eax + 0xb0]
xor bl, bl
cmp ecx, 0x3e8
mov byte [ebp - 0x11], bl
jle 0x53d6e2
mov edx, dword [eax + 0x418]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 4
push 0x1436
push 0x111
push edx
call edi
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x53d6e8
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xa
mov ecx, dword [eax + 0x5c]
add ecx, 0x100
call fcn.005f8410
xor esi, esi
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x5c]
cmp esi, dword [ecx + 0xb0]
jge 0x53d751
push esi
call fcn.004d1e60
test bl, bl
je 0x53d745
mov edx, dword [ebp - 0x18]
lea eax, [esi + esi*4]
mov ecx, dword [edx + 0x5c]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [ecx + 0xb0]
test eax, eax
jle 0x53d745
push eax
mov eax, dword [ecx + 0x418]
push 0x143e
push 0x111
push eax
call edi
inc esi
jmp 0x53d6ff
mov edi, dword [ebp - 0x18]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0x1437
mov ecx, dword [edi + 0x5c]
push 0x111
mov dword [ebp - 4], 9
mov edx, dword [ecx + 0x418]
push edx
call esi
test bl, bl
je 0x53d795
mov eax, dword [edi + 0x5c]
push 0
push 0x143d
push 0x111
mov ecx, dword [eax + 0x410]
push ecx
call esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret