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

Disassembly:
sub esp, 0x338
mov eax, dword [0x41b380]
mov ecx, dword [esp + 0x340]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
push edi
lea edx, [esp + 0x3c]
xor ebx, ebx
push ecx
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x34c]
push ebx
push ebx
push 0x18b
push eax
lea ebp, [esp + 0x4c]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
mov dword [esp + 0x20], eax
jle 0x40897f
mov ecx, dword [esp + 0x34c]
push 0
push ebx
push 0x199
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
je 0x40897f
mov eax, dword [edi + 0x20c]
test eax, eax
je 0x40897f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x3c]
push eax
push edx
push edi
mov dword [esp + 0x24], eax
call fcn.0040d8d0
add esp, 0xc
test eax, eax
jne 0x40897f
mov eax, dword [esp + 0x18]
mov edi, dword [edi + 0x208]
inc edi
inc ebx
lea ebp, [esp + eax + 0x3c]
mov eax, dword [esp + 0x20]
cmp ebx, eax
mov dword [esp + 0x28], edi
jl 0x40891f
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x408a17
cmp byte [ebp], 0x5c
jne 0x40899a
inc ebp
mov edi, ebp
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x140]
sub edi, ecx
push 0x104
push edx
lea eax, [esp + 0x44]
push edi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x3c]
lea edx, [esp + 0x148]
push eax
mov eax, dword [esp + 0x358]
push edx
mov word [esp + edi*2 + 0x150], 0
mov ecx, dword [esi]
push 0
push eax
push esi
call dword [ecx + 0xc]
test eax, eax
jl 0x408a17
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
lea edx, [esp + 0x14]
push edx
push 0x416368
push 0
push eax
push esi
call dword [ecx + 0x14]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
cmp byte [ebp], 0
je 0x408b93
jmp 0x408a27
mov esi, dword [esp + 0x2c]
push 0x5c
push ebp
call fcn.0040dad0
mov edi, eax
add esp, 8
test edi, edi
je 0x408a50
lea eax, [esp + 0x3c]
cmp ebp, eax
jne 0x408a43
inc edi
jmp 0x408a6e
mov al, byte [edi + 1]
test al, al
je 0x408b93
jmp 0x408a6e
lea ecx, [esp + 0x3c]
cmp ebp, ecx
ja 0x408b93
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, ebp
mov byte [edi], 0x5c
inc edi
mov byte [edi], 0
mov dl, byte [edi]
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x23], dl
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408b93
test al, 0x10
je 0x408b93
lea ecx, [esp + 0x140]
push 0x104
push ecx
lea edx, [esp + 0x44]
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x148]
push edx
mov edx, dword [esp + 0x358]
push ecx
push 0
push edx
push esi
call dword [eax + 0xc]
test eax, eax
jl 0x408b93
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408af3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
lea eax, [esp + 0x14]
push eax
push 0x416368
push 0
push ecx
push esi
call dword [edx + 0x14]
push 0x210
call fcn.0040d4a1
add esp, 4
lea edx, [esp + 0x3c]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x104]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34c]
push esi
mov dword [esi + 0x208], eax
push ebx
inc eax
push 0x181
push ecx
mov dword [esi + 0x20c], 1
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
inc ebx
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov al, byte [esp + 0x1f]
mov ebp, edi
cmp al, 0x5c
mov byte [edi], al
jne 0x408b89
lea ebp, [edi + 1]
cmp byte [ebp], 0
jne 0x408a23
mov edx, dword [0x41b380]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
add edx, 0x1c
mov dword [esp + 0x30], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x41b380]
sub ecx, edx
mov byte [ecx + ebp + 0x1c], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408d48
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x350]
push 0x20
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x408d3d
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x408d33
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
mov dword [esp + 0x34], 0x60000000
call dword [ecx + 0x24]
mov eax, dword [esp + 0x24]
and eax, 0x60000000
cmp eax, 0x60000000
jne 0x408d05
push 0x210
call fcn.0040d4a1
add esp, 4
lea ecx, [esp + 0x3c]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x28]
lea ebp, [esi + 0x104]
mov dword [esi + 0x20c], 0
mov dword [esi + 0x208], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebp
push 0
push eax
push ecx
call fcn.00407c20
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push esi
push 0x8000
push edx
push eax
call fcn.00407c20
mov edi, dword [esp + 0x50]
add esp, 0x20
mov eax, edi
cmp eax, ebx
jge 0x408ce6
mov ecx, dword [esp + 0x34c]
push 0
push edi
push 0x199
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x408ce6
cmp esi, 0xffffffff
je 0x408ce6
add eax, 0x104
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jl 0x408ce6
inc edi
cmp edi, ebx
jl 0x408cb1
mov edx, dword [esp + 0x34c]
push esi
push edi
push 0x181
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x20]
inc ebx
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [0x41b380]
mov edx, dword [esp + 0x10]
push edx
mov eax, dword [eax + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x408c16
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov edi, 1
jmp 0x408d4c
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x20]
cmp ebx, esi
jge 0x408d73
mov ebp, dword [esp + 0x34c]
sub esi, ebx
push 0
push ebx
push 0x182
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
dec esi
jne 0x408d5d
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408d7d
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x338
ret