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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64dd43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x4f4]
push ebx
push ebx
push 0x1042
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
jl 0x547b9f
cmp eax, dword [esi + 0x29c]
jge 0x547b9f
mov ecx, dword [esi + 0x298]
mov edi, dword [ecx + eax*4]
cmp edi, ebx
jl 0x547b9f
mov edx, dword [esi + 0x240]
cmp edi, dword [edx + 0xb0]
jge 0x547b9f
mov eax, dword [0x6f7b78]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb4], eax
call fcn.004027c0
lea ecx, [ebp - 0xa4]
call fcn.004027c0
lea ecx, [ebp - 0x98]
call fcn.004027c0
mov eax, dword [0x6f7b78]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
call fcn.004027c0
mov eax, dword [0x6f7b78]
mov dword [ebp - 0x10c], 0x65b4ec
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov ecx, dword [esi + 0x240]
lea eax, [ebp - 0x10c]
push ebx
push eax
push edi
add ecx, 8
mov byte [ebp - 4], 1
call fcn.005fa550
test al, al
jne 0x547bb0
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0
call fcn.00483aa0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xce], 4
jne 0x547b90
mov eax, dword [ebp - 0xb0]
cmp eax, ebx
jne 0x547bc9
lea eax, [ebp - 0xac]
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x547b90
cmp dword [0x6fcacc], ebx
je 0x547c09
mov eax, dword [ebp - 0xb0]
cmp eax, ebx
jne 0x547bee
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x547c09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x547d28
mov eax, dword [ebp - 0xb0]
cmp eax, ebx
jne 0x547c19
lea eax, [ebp - 0xac]
push ebx
push eax
call fcn.004a5e30
add esp, 8
cmp eax, ebx
jne 0x547c42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x547d28
cmp dword [0x6fcacc], ebx
jne 0x547d28
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x148]
mov ebx, 0x3c
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xb0]
mov esi, 0x40
test eax, eax
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x144], esi
je 0x547c79
mov dword [ebp - 0x138], eax
jmp 0x547c85
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x138], ecx
lea edx, [ebp - 0x148]
mov dword [ebp - 0x12c], 1
push edx
call dword [0x6fc2d0]
test eax, eax
jne 0x547b90
mov eax, dword [0x6cdafc]
test eax, eax
jne 0x547b90
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x184]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x184], ebx
test eax, eax
mov dword [ebp - 0x180], esi
jne 0x547cdc
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402850
mov ecx, dword [ebp - 0x14]
add esp, 8
push 0x3f
push ecx
call fcn.00609c00
add esp, 8
test eax, eax
jne 0x547d1b
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x168], 1
call dword [0x6fc2cc]
lea ecx, [ebp - 0x14]
call fcn.00622d8a
jmp 0x547b90
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x1c], bx
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x547d46
lea eax, [ebp - 0xac]
mov esi, dword [0x6fdcf4]
cmp esi, ebx
je 0x547e08
cmp eax, ebx
je 0x547e08
push eax
lea ecx, [ebp - 0x44]
call fcn.00401ee0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x38]
call fcn.004027c0
push ebx
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.004027e0
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x44]
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 - 0x20], edx
je 0x547df0
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 - 0x44]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x38]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x20]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401070
mov edx, dword [0x6fdcf0]
push ebx
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x28], bx
call fcn.004027e0
push 0x30
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f10
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x2c]
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401070
jmp 0x547b90