Function at 0x100804b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1016538e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov edi, dword [ebp + 8]
mov dword [esp + 0x58], ebx
cmp dword [edi + 0x24], ebx
jne 0x10080523
push 0x20
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
mov byte [esp + 0x58], 1
cmp esi, ebx
je 0x10080519
mov eax, edi
call fcn.100a12c0
jmp 0x1008051b
xor eax, eax
mov byte [esp + 0x58], 0
mov dword [edi + 0x24], eax
mov edi, dword [edi + 0x24]
cmp dword [edi + 0x1c], 0xffffffff
mov dword [esp + 0x20], edi
jne 0x1008053e
mov eax, dword [edi + 4]
push ebx
push 1
push eax
mov ecx, edi
call fcn.100a13e0
mov dword [edi + 0x1c], ebx
jmp 0x10080547
mov edi, dword [esp + 0x20]
or ebx, 0xffffffff
cmp dword [edi + 0x1c], ebx
jne 0x10080565
mov ecx, dword [edi + 4]
push 0
push 1
push ecx
mov ecx, edi
call fcn.100a13e0
mov dword [edi + 0x1c], 0
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 0x10]
jge 0x100808d7
mov edx, dword [edi + 0xc]
mov esi, dword [edx + eax*4]
inc eax
mov dword [edi + 0x1c], eax
cmp byte [esi + 0xf], 0
je 0x10080547
mov edx, esi
call fcn.100a1220
test al, al
je 0x10080547
cmp byte [esi + 0xd], 0
je 0x10080547
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0x200]
mov ecx, dword [esi + 4]
test eax, eax
je 0x10080547
test ecx, ecx
je 0x10080547
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10080547
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x40
push 0
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x100808a7
mov dword [esp + 0x44], 0x10
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov byte [esp + 0x5c], 2
call fcn.100a1000
cmp byte [ebx + 0x1fc], 0
je 0x1008064d
cmp dword [esi + 0x14], 0xa
je 0x10080690
lea ebx, [esp + 0x38]
mov byte [esp + 0x58], 3
call fcn.1007ed50
mov byte [esp + 0x58], 0
cmp byte [esp + 0x48], 0
je 0x10080547
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10080547
mov ecx, dword [esp + 0x38]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10080547
cmp byte [esi + 0x10], 0
je 0x10080690
lea ebx, [esp + 0x38]
mov byte [esp + 0x58], 4
call fcn.1007ed50
mov byte [esp + 0x58], 0
cmp byte [esp + 0x48], 0
je 0x10080547
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10080547
mov edx, dword [esp + 0x38]
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10080547
mov eax, esi
call fcn.100a0da0
cmp byte [ebx + 0x204], 0
mov dword [esp + 0x28], eax
jne 0x10080718
push 3
push SysReAllocStringLen
lea eax, [ebx + 8]
call fcn.100aa4e0
mov edi, dword [esp + 0x18]
mov ebx, eax
test ebx, ebx
js 0x100806ed
cmp dword [edi + 0x208], 0
je 0x100806ed
mov eax, dword [edi + 0x208]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x24]
cmp dword [ecx*4 + 0x1043a1b4], eax
jne 0x100807e2
cmp ebx, dword [0x10448fb8]
jne 0x100806fa
mov ebx, 0x80040753
test ebx, ebx
setns dl
mov byte [edi + 0x204], dl
mov byte [edi + 0x205], 0
mov dword [esp + 0x14], ebx
test ebx, ebx
js 0x100807fc
lea edi, [esp + 0x10]
mov dword [esp + 0x10], 0
call fcn.10076aa0
mov edx, dword [esp + 0x18]
mov byte [esp + 0x58], 7
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x18]
add edx, 8
push edx
mov edx, dword [esp + 0x34]
call fcn.100aaab0
mov dword [esp + 0x14], eax
test eax, eax
js 0x10080788
jne 0x1008077b
cmp byte [esi + 0xf], 0
je 0x1008077b
mov edx, esi
call fcn.100a1220
test al, al
je 0x1008077b
cmp byte [esi + 0xd], 0
je 0x1008077b
mov eax, dword [esi]
fld1
mov byte [eax + 0x2c], 1
mov ecx, dword [esi]
fstp qword [ecx + 0x18]
mov ebx, dword [esp + 0x10]
lea edi, [esp + 0x1c]
call fcn.1007f420
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100807a5
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x10], 0
lea ebx, [esp + 0x38]
mov byte [esp + 0x58], 8
call fcn.1007ed50
mov byte [esp + 0x58], 0
cmp byte [esp + 0x48], 0
je 0x10080543
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10080543
mov ecx, dword [esp + 0x38]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10080543
lea edx, [edi + 8]
push edx
call fcn.100aa710
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
mov dword [esp + 0x14], 0x80040753
mov edi, dword [edi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
jne 0x10080866
lea ebx, [esp + 0x38]
mov byte [esp + 0x58], 5
call fcn.1007ed50
cmp byte [esp + 0x48], 0
je 0x10080838
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10080838
push eax
mov eax, dword [esp + 0x3c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1008084c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x80040753
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ebx, [esp + 0x38]
mov byte [esp + 0x58], 6
call fcn.1007ed50
cmp byte [esp + 0x48], 0
je 0x10080891
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10080891
push eax
mov eax, dword [esp + 0x3c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100808fc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x100808fc
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], str.bad_allocation
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x104241f4
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
mov esi, dword [esp + 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [edx], esi
test esi, esi
je 0x100808ec
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov dword [esp + 0x58], ebx
test esi, esi
je 0x100808fc
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8