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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c461
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf04
push ebx
push esi
push edi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x104
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412ecc
lea ecx, [ebp - 0xc10]
call fcn.0046f750
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__ld_in_CBrIntr:CADM__s1_n
lea ecx, [ebp - 0xc10]
call fcn.0046f830
lea ecx, [ebp - 0xc10]
mov byte [ebp - 4], bl
call fcn.0046f820
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0xf10]
lea edx, [ebp - 0xe10]
push ecx
lea eax, [ebp - 0xd10]
push edx
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x118]
push ecx
push edx
call fcn.0054ea7c
mov esi, dword [ebp + 0xc]
add esp, 0x14
lea eax, [ebp - 0xd10]
lea ecx, [ebp - 0x14]
push esi
push eax
push ecx
lea edx, [ebp - 0x118]
push 0x6168c4
push edx
call fcn.0054ea2a
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413177
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x413177
push ebx
lea ecx, [ebp - 0xa00]
call fcn.0042b4f0
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x984]
call fcn.0056a289
push esi
lea ecx, [ebp - 0x988]
call fcn.0056a289
lea ecx, [ebp - 0x99c]
call fcn.00401070
lea edx, [ebp - 0x118]
test edx, edx
je 0x412fdf
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x412fdf
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
lea eax, [ebp - 0x118]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x994], eax
je 0x412fdf
lea ecx, [eax + eax + 2]
push ecx
call fcn.0056649c
add esp, 4
cmp eax, ebx
mov dword [ebp - 0x99c], eax
je 0x412fdf
mov edx, dword [ebp - 0x994]
push edx
push eax
lea eax, [ebp - 0x118]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
mov dword [ebp - 0x994], eax
lea ecx, [ebp - 0xa00]
mov byte [ebp - 0x990], bl
mov dword [ebp - 0x9a4], 0x63e230
call fcn.00566096
cmp eax, 1
jne 0x41309e
lea ecx, [ebp - 0x940]
mov byte [ebp - 4], 0xa
call fcn.0051e0a0
lea ecx, [ebp - 0x97c]
mov byte [ebp - 4], 9
call fcn.00571d9b
lea ecx, [ebp - 0x980]
mov byte [ebp - 4], 8
call fcn.0056a100
lea ecx, [ebp - 0x984]
mov byte [ebp - 4], 7
call fcn.0056a100
lea ecx, [ebp - 0x988]
mov byte [ebp - 4], 6
call fcn.0056a100
lea ecx, [ebp - 0x98c]
mov byte [ebp - 4], 5
call fcn.0056a100
lea ecx, [ebp - 0x99c]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x9a0]
mov byte [ebp - 4], 3
call fcn.0056a100
lea ecx, [ebp - 0xa00]
mov byte [ebp - 4], bl
call fcn.00565cd7
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 8
lea ecx, [ebp - 0x940]
mov byte [ebp - 4], 0x12
call fcn.0051e0a0
lea ecx, [ebp - 0x97c]
mov byte [ebp - 4], 0x11
call fcn.00571d9b
lea ecx, [ebp - 0x980]
mov byte [ebp - 4], 0x10
call fcn.0056a100
lea ecx, [ebp - 0x984]
mov byte [ebp - 4], 0xf
call fcn.0056a100
lea ecx, [ebp - 0x988]
mov byte [ebp - 4], 0xe
call fcn.0056a100
lea ecx, [ebp - 0x98c]
mov byte [ebp - 4], 0xd
call fcn.0056a100
lea ecx, [ebp - 0x99c]
mov byte [ebp - 4], 0xc
call fcn.00401070
lea ecx, [ebp - 0x9a0]
mov byte [ebp - 4], 0xb
call fcn.0056a100
lea ecx, [ebp - 0xa00]
mov byte [ebp - 4], bl
call fcn.00565cd7
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 2
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8