Function at 0x40f1c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x24a]
push ecx
mov word [ebp - 0x24c], ax
call sub.MSVCRT.dll_memset
xor eax, eax
add esp, 0xc
push eax
lea edx, [ebp - 0x24c]
push edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 5], al
mov eax, dword [ebp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], 0xfde9
cmp eax, 0xfdea
je 0x40f22c
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x40]
and dword [ebp + 0x10], 0xffffffdf
push 5
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x40f2be
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, eax
lea eax, [edi + 0x14]
push eax
lea ecx, [ebp - 0xc]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_class_C2bString_const__]
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x24c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
lea ecx, [ebp - 0xc]
sete bl
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
test bl, bl
jne 0x40f294
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x40f245
jmp 0x40f2be
test esi, esi
je 0x40f2be
push 0
mov eax, edi
call fcn.00404180
test al, al
je 0x40f4a1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
push 0
push esi
push 0x221
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x4250cc]
mov esi, dword [ecx]
call dword [sym.imp.Ngs3.dll_public:_unsigned_int___thiscall_C2bString::GetLength_void_const]
push eax
lea edx, [ebp - 0x24c]
push edx
push esi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
mov eax, dword [ebp + 0xc]
push eax
sete bl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x40f2f5
test bl, bl
je 0x40f2f9
or dword [ebp + 0x10], 2
lea ecx, [ebp - 0x14]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_CTextStore::constructor_void_]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov edi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call edi
lea edx, [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x24c]
push edx
mov dword [ebp - 0x20], ecx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], 0x14
mov dword [ebp - 0x24], fcn.0040f4b0
call dword [sym.imp.Ngs3.dll_public:_int___thiscall_CTextStore::Load_wchar_t_const___struct_CTextStore::LOADPARAM__]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xffffffff
jne 0x40f3f2
cmp eax, 2
jne 0x40f3b7
test bl, bl
jne 0x40f3c8
push 0x23
push 0xb6
call fcn.00415b10
add esp, 8
sub eax, 2
je 0x40f3be
sub eax, 4
jne 0x40f3cd
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40f386
mov dword [ebp - 0x38], eax
jmp 0x40f38f
mov ecx, dword [0x425614]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 8]
mov edx, dword [0x425610]
push eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], edx
call fcn.0040d820
mov ecx, dword [ebp - 0xc]
push ecx
jmp 0x40f494
cmp eax, 0x4c7
jne 0x40f3c4
mov byte [ebp - 5], 1
jmp 0x40f3cd
test eax, eax
je 0x40f3cd
call fcn.004155d0
test byte [ebp + 0x14], 2
je 0x40f3e7
cmp byte [ebp - 5], 0
je 0x40f3e7
mov edx, dword [ebp - 0xc]
mov esi, 0xfffffffd
push edx
jmp 0x40f496
mov edx, dword [ebp - 0xc]
xor esi, esi
push edx
jmp 0x40f496
test ecx, 0xf00
je 0x40f430
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40f413
push 8
push eax
mov eax, dword [0x425630]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x3c]
test ecx, 0xd00
je 0x40f430
or dword [ebp + 0x10], 0x20
test byte [ebp + 0x14], 1
je 0x40f461
test bl, bl
jne 0x40f461
and ecx, 0x100
neg ecx
sbb ecx, ecx
not ecx
and ecx, dword [ebp - 0x38]
mov edi, 0x4250c0
push ecx
lea ecx, [ebp - 0x24c]
push ecx
call fcn.00415d20
mov edi, dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [ebp - 0x14]
call dword [sym.imp.Ngs3.dll_public:_void____thiscall_CTextStore::ToHandle_void_]
cmp dword [ebp - 0x38], 0
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
jne 0x40f481
mov eax, dword [0x425614]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x24c]
call fcn.0040d820
mov edx, dword [ebp - 0xc]
push edx
mov esi, eax
call edi
lea ecx, [ebp - 0x14]
call dword [sym.imp.Ngs3.dll_public_virtual:_void___thiscall_CTextStore::destructor_void_]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14