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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov edi, dword [ebp + 0xc]
mov ebx, 0x4ab6c7
cmp byte [ebp - 1], 0
je 0x462441
push 0x400
lea eax, [ebp - 0x808]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push dword [ebp - 8]
lea eax, [ebp - 0x808]
call fcn.0040be48
push eax
call fcn.00498e7c
add esp, 8
lea edx, [ebp - 0x808]
push edx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x462225
cmp byte [ebp + 8], 0
je 0x46218c
mov al, 1
call fcn.00461ff8
lea edx, [ebx + 0x202]
lea ecx, [ebx + 0x255]
push edx
push esi
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
lea edx, [ebp - 0x808]
lea ecx, [ebx + 0x25e]
push edx
push esi
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
lea edx, [ebx + 0x285]
lea ecx, [ebx + 0x25e]
push edx
push esi
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 0x276]
mov eax, 0x80000000
call fcn.004617d8
cmp byte [ebp + 8], 0
je 0x46223f
xor eax, eax
call fcn.00461ff8
jmp 0x46223f
lea edx, [ebp - 0x808]
mov eax, 0x206
push edx
call fcn.004129c8
push eax
call fcn.00487828
add esp, 8
lea edx, [ebx + 4]
lea ecx, [ebx + 0x28f]
push edx
push esi
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
lea edx, [ebx + 4]
lea ecx, [ebx + 0x2b5]
push edx
push esi
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
lea edx, [ebx + 4]
lea ecx, [ebx + 0x2dd]
push edx
push esi
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
lea edx, [ebx + 4]
lea ecx, [ebx + 0x307]
push edx
push esi
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
lea edx, [ebx + 4]
lea ecx, [ebx + 0x333]
push edx
push esi
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
push esi
lea ecx, [ebx + 4]
lea edx, [ebx + 0x35c]
mov eax, 0x80000000
call fcn.004617d8
push esi
lea ecx, [ebx + 4]
lea edx, [ebx + 0x377]
mov eax, 0x80000000
call fcn.004617d8
push esi
push edi
lea edx, [ebx + 0x396]
push edx
lea ecx, [ebp - 0x408]
push ecx
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
push esi
push edi
lea eax, [ebx + 0x3b7]
push eax
lea edx, [ebp - 0x408]
push edx
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
push esi
push edi
lea eax, [ebx + 0x3dd]
push eax
lea edx, [ebp - 0x408]
push edx
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
push esi
push edi
lea eax, [ebx + 0x400]
push eax
lea edx, [ebp - 0x408]
push edx
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
push esi
push edi
lea eax, [ebx + 0x422]
push eax
lea edx, [ebp - 0x408]
push edx
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
push esi
push edi
lea eax, [ebx + 0x44b]
push eax
lea edx, [ebp - 0x408]
push edx
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.004617d8
lea eax, [ebx + 0x4b5]
lea edx, [ebx + 0x471]
push eax
mov eax, CreateStatusWindowA
mov ecx, esi
call fcn.004617d8
jmp 0x46264c
push esi
lea edx, [ebx + 0x25e]
push edx
lea ecx, [ebp - 0x408]
push ecx
call fcn.004620ab
add esp, 0xc
mov edx, eax
mov eax, 0x80000000
call fcn.00461c9c
push esi
lea ecx, [ebx + 0x255]
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.004620ab
add esp, 0xc
mov edx, eax
mov eax, 0x80000000
call fcn.00461c9c
push esi
lea edx, [ebx + 0x28f]
push edx
lea ecx, [ebp - 0x408]
push ecx
call fcn.004620ab
add esp, 0xc
mov edx, eax
mov eax, 0x80000000
call fcn.00461c9c
push esi
lea ecx, [ebx + 0x2b5]
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.004620ab
add esp, 0xc
mov edx, eax
mov eax, 0x80000000
call fcn.00461c9c
push esi
lea edx, [ebx + 0x2dd]
push edx
lea ecx, [ebp - 0x408]
push ecx
call fcn.004620ab
add esp, 0xc
mov edx, eax
mov eax, 0x80000000
call fcn.00461c9c
push esi
lea ecx, [ebx + 0x307]
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.004620ab
add esp, 0xc
mov edx, eax
mov eax, 0x80000000
call fcn.00461c9c
push esi
lea edx, [ebx + 0x333]
push edx
lea ecx, [ebp - 0x408]
push ecx
call fcn.004620ab
add esp, 0xc
mov edx, eax
mov eax, 0x80000000
call fcn.00461c9c
lea edx, [ebx + 0x35c]
mov eax, 0x80000000
call fcn.00461c9c
lea edx, [ebx + 0x377]
mov eax, 0x80000000
call fcn.00461c9c
push edi
lea ecx, [ebx + 0x396]
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.00461ce0
push edi
lea edx, [ebx + 0x3b7]
push edx
lea ecx, [ebp - 0x408]
push ecx
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.00461ce0
push edi
lea eax, [ebx + 0x3dd]
push eax
lea edx, [ebp - 0x408]
push edx
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.00461ce0
push edi
lea eax, [ebx + 0x400]
push eax
lea edx, [ebp - 0x408]
push edx
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.00461ce0
push edi
lea eax, [ebx + 0x422]
push eax
lea edx, [ebp - 0x408]
push edx
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.00461ce0
push edi
lea eax, [ebx + 0x44b]
push eax
lea edx, [ebp - 0x408]
push edx
call fcn.004620ab
add esp, 0xc
mov edx, eax
lea ecx, [ebx + 4]
mov eax, 0x80000000
call fcn.00461ce0
lea edx, [ebx + 0x471]
mov ecx, esi
mov eax, CreateStatusWindowA
call fcn.00461ce0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8