Function at 0x10091440
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10143759
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 5], 0
je 0x100915e2
call fcn.10091840
test al, al
je 0x10091605
xor esi, esi
mov ecx, ebx
mov dword [ebx + 0x54], esi
call fcn.10091b10
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x100915d5
mov ecx, dword [ebx + 0x30]
sub ecx, eax
mov eax, 0xe7fc601
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x100915d5
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x100914ee
mov ecx, dword [ebx + 0x30]
sub ecx, eax
mov eax, 0xe7fc601
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x100914f4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [ebx + 0x2c]
add esi, dword [esp + 0x18]
sub esp, 0x8d4
mov edi, esp
mov ecx, 0x235
rep movsd dword es:[edi], dword [esi]
call fcn.100917b0
test al, al
je 0x10091530
mov eax, 1
add dword [esp + 0x14], eax
add dword [ebx + 0x54], eax
add dword [esp + 0x18], 0x8d4
mov esi, dword [esp + 0x14]
jmp 0x100914a4
push ebx
call fcn.10093010
mov esi, dword [ebx + 0x54]
mov edi, esi
imul edi, edi, 0x8d4
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
lea esp, [esp]
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x10091605
mov ecx, dword [ebx + 0x30]
sub ecx, eax
mov eax, 0xe7fc601
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x10091605
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x1009159a
mov ecx, dword [ebx + 0x30]
sub ecx, eax
mov eax, 0xe7fc601
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x100915a0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [ebx + 0x2c]
sub esp, 0x8d4
add esi, edi
mov edi, esp
mov ecx, 0x235
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.10092c20
add dword [esp + 0x14], 1
add dword [esp + 0x18], 0x8d4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
jmp 0x10091550
push ebx
call fcn.10093010
mov al, 1
jmp 0x1009167f
call fcn.10091840
test al, al
mov ecx, ebx
je 0x10091678
mov eax, dword [ebx]
mov edx, dword [eax + 4]
call edx
test al, al
jne 0x10091609
mov eax, dword [ebx]
mov edx, dword [eax + 0x20]
mov ecx, ebx
call edx
xor al, al
jmp 0x1009167f
lea eax, [ebx + 0x38]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str.WindowsAB_Function.dat
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0
call dword [0x1014c4e8]
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x1009163d
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10091662
test al, 0x10
jne 0x10091662
push 0
push 0
push 0
push 0x10093910
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
jmp 0x1009167f
mov edx, dword [ebx]
mov eax, dword [edx + 0x20]
call eax
mov byte [ebx + 5], 0
mov byte [ebx + 4], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10130e50
mov esp, ebp
pop ebp
ret