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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
xor ebx, ebx
mov eax, edx
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
mov ecx, ebx
mov dword [ebp - 0x1c], edi
mov esi, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], ecx
jne 0x100577df
mov ecx, eax
call fcn.1005afb1
test eax, eax
je 0x100577dd
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
jmp 0x100577df
mov ecx, ebx
mov eax, dword [ebp + 0xc]
xor edx, edx
test eax, eax
sete dl
mov dword [ebp - 0xc], edx
test eax, eax
jne 0x100577fb
mov dword [ebp - 8], 1
test ecx, ecx
jne 0x100577fe
mov dword [ebp - 8], ebx
push edx
xor ebx, ebx
cmp eax, 1
push 0x480
push edi
sete bl
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0xc]
push 0x47f
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0xc]
push 0x482
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0xc]
push 0x481
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
push 0x485
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
push 0x484
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
push 0x487
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
push 0x486
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
push 0x48f
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
push 0x48e
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
push 0x485
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp - 4]
push 0x484
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp - 4]
push 0x487
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp - 4]
push 0x486
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp - 4]
push 0x48f
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp - 4]
push 0x48e
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push 0xae5
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 0xae6
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 0xae7
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 0xae8
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 0xae9
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 0xaea
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 0xaeb
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 4], esi
jne 0x10057b4d
push 0x48
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x18], ebx
push ebx
push ebx
push 0x147
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.10031469
mov ebx, dword [ebp - 0x18]
lea edx, [ebp - 0x68]
mov ecx, ebx
call fcn.1002b967
cmp dword [ebp + 0xc], 0
jne 0x10057a9f
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x10057a9f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x10]
jne 0x10057a48
sub ecx, esi
sar ecx, 1
je 0x10057a9f
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10057a9f
push 0x1010
push 0x26
push 0x86
xor esi, esi
push esi
push dword [ebp - 0x50]
push dword [0x1008b1e4]
call dword [sym.imp.USER32.dll_LoadImageW]
test eax, eax
je 0x10057a9f
push eax
push esi
push 0x172
push 0x66
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x54]
test edx, edx
je 0x10057af6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x10]
jne 0x10057aab
sub ecx, esi
sar ecx, 1
cmp ecx, 7
jbe 0x10057ac5
push 7
pop ecx
jmp 0x10057ada
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x10]
jne 0x10057aca
sub ecx, esi
sar ecx, 1
push ecx
push edx
push 7
push 0x100075f0
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10057af6
push 1
jmp 0x10057af9
xor eax, eax
push eax
push 0xb
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
sub esp, 0x48
lea esi, [ebp - 0x68]
push 0x12
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1002db41
test ebx, ebx
je 0x10057b26
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
neg esi
sbb esi, esi
and esi, 5
push esi
push 0x66
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
push eax
push 0xb
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x10057b2c