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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549c31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf74
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 0x4111dc
lea ecx, [ebp - 0x220]
call fcn.00459300
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 - 0x220]
call fcn.004593e0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], bl
call fcn.004593d0
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 - 0xf80]
lea edx, [ebp - 0xe80]
push ecx
lea eax, [ebp - 0xd80]
push edx
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x118]
push ecx
push edx
call fcn.0051d13a
mov esi, dword [ebp + 0xc]
add esp, 0x14
lea eax, [ebp - 0xd80]
lea ecx, [ebp - 0x14]
push esi
push eax
push ecx
lea edx, [ebp - 0x118]
push 0x59879c
push edx
call fcn.0051d0e8
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411421
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x411421
push ebx
lea ecx, [ebp - 0xc80]
call fcn.00422180
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0xc0c]
call fcn.00537c8d
push esi
lea ecx, [ebp - 0xc10]
call fcn.00537c8d
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0xc1c]
push edx
call fcn.00537c8d
lea ecx, [ebp - 0xc80]
mov byte [ebp - 0xc18], bl
mov dword [ebp - 0xc24], 0x5ba5f8
call fcn.00533ae5
cmp eax, 1
jne 0x411348
lea ecx, [ebp - 0xbc8]
mov byte [ebp - 4], 0xa
call fcn.004f5e70
lea ecx, [ebp - 0xc04]
mov byte [ebp - 4], 9
call fcn.0053f83e
lea ecx, [ebp - 0xc08]
mov byte [ebp - 4], 8
call fcn.00537b04
lea ecx, [ebp - 0xc0c]
mov byte [ebp - 4], 7
call fcn.00537b04
lea ecx, [ebp - 0xc10]
mov byte [ebp - 4], 6
call fcn.00537b04
lea ecx, [ebp - 0xc14]
mov byte [ebp - 4], 5
call fcn.00537b04
lea ecx, [ebp - 0xc1c]
mov byte [ebp - 4], 4
call fcn.00537b04
lea ecx, [ebp - 0xc20]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp - 0xc80]
mov byte [ebp - 4], bl
call fcn.00533726
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 - 0xbc8]
mov byte [ebp - 4], 0x12
call fcn.004f5e70
lea ecx, [ebp - 0xc04]
mov byte [ebp - 4], 0x11
call fcn.0053f83e
lea ecx, [ebp - 0xc08]
mov byte [ebp - 4], 0x10
call fcn.00537b04
lea ecx, [ebp - 0xc0c]
mov byte [ebp - 4], 0xf
call fcn.00537b04
lea ecx, [ebp - 0xc10]
mov byte [ebp - 4], 0xe
call fcn.00537b04
lea ecx, [ebp - 0xc14]
mov byte [ebp - 4], 0xd
call fcn.00537b04
lea ecx, [ebp - 0xc1c]
mov byte [ebp - 4], 0xc
call fcn.00537b04
lea ecx, [ebp - 0xc20]
mov byte [ebp - 4], 0xb
call fcn.00537b04
lea ecx, [ebp - 0xc80]
mov byte [ebp - 4], bl
call fcn.00533726
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