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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032580
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x48], ebx
mov edi, ecx
push 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
jne 0x1000674a
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xbad_alloc_void_]
mov dword [ebp - 0x24], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
mov dword [eax], ecx
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
jb 0x10006773
mov eax, dword [ebx]
jmp 0x10006775
mov eax, ebx
test eax, eax
je 0x10006807
cmp word [eax], 0
je 0x10006807
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10006807
mov edx, ebx
lea ecx, [ebp - 0x24]
call fcn.100065b0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1000680a
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
call fcn.10006c30
mov ecx, dword [eax]
test ecx, ecx
jne 0x100067ba
xor esi, esi
jmp 0x100067bc
mov esi, dword [ecx]
mov edx, dword [eax + 8]
mov ecx, dword [esi + 8]
mov eax, edx
shr eax, 2
dec ecx
and ecx, eax
mov eax, dword [esi + 4]
and edx, 3
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x100067e8
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
call fcn.10006ad0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1000680a
dec ecx
mov dword [ebp - 0x14], ecx
jne 0x100067fe
mov dword [ebp - 0x18], 0
jmp 0x10006801
inc dword [ebp - 0x18]
test ecx, ecx
jne 0x100067a4
jmp 0x1000680a
mov ecx, dword [ebp - 0x14]
xor edx, edx
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 1
cmp dword [edi + 0x10], esi
je 0x10006902
lea esp, [esp]
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.10006c30
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x10006845
mov eax, dword [eax]
mov edx, dword [edx + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [eax + 8]
dec eax
mov ecx, edx
shr ecx, 2
and ecx, eax
mov eax, dword [ebp - 0x3c]
and edx, 3
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0x100068d3
lea eax, [ebp - 0x34]
cmp eax, esi
jae 0x100068a6
cmp ebx, eax
ja 0x100068a6
mov ebx, eax
mov eax, dword [ebp - 0x30]
sub ebx, eax
sar ebx, 2
cmp esi, dword [ebp - 0x28]
jne 0x1000689b
push ecx
lea ecx, [ebp - 0x30]
call fcn.10006bc0
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
test esi, esi
je 0x100068c0
mov eax, dword [eax + ebx*4]
mov dword [esi], eax
jmp 0x100068c0
cmp esi, dword [ebp - 0x28]
jne 0x100068ba
push ecx
lea ecx, [ebp - 0x30]
call fcn.10006bc0
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
test esi, esi
je 0x100068c0
mov dword [esi], ecx
mov edx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x30]
add esi, 4
add edx, dword [ecx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], edx
jmp 0x100068d6
mov edx, dword [ebp - 0x44]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x100068f7
dec eax
mov dword [edi + 0x10], eax
jne 0x100068ec
mov dword [edi + 0xc], 0
jmp 0x100068ef
inc dword [edi + 0xc]
test eax, eax
jne 0x10006830
test edx, edx
jne 0x10006995
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], 1
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
test ebx, ebx
je 0x1000691c
push ebx
call edi
mov ecx, dword [ebp - 0x14]
add esp, 4
test ecx, ecx
je 0x10006936
mov eax, dword [ebp - 0x18]
dec ecx
mov edx, 0
cmove eax, edx
mov dword [ebp - 0x18], eax
test ecx, ecx
jne 0x10006920
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
test esi, esi
je 0x10006956
mov ecx, dword [eax + esi*4 - 4]
dec esi
test ecx, ecx
je 0x10006952
push ecx
call edi
mov eax, dword [ebp - 0x20]
add esp, 4
test esi, esi
jne 0x10006940
test eax, eax
je 0x10006960
push eax
call edi
add esp, 4
push dword [ebp - 0x24]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call edi
mov eax, dword [ebp - 0x38]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret
push edx
call fcn.1002f4c2
mov edx, eax
add esp, 4
mov dword [ebp - 0x3c], edx
test edx, edx
jne 0x100069b2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
jmp 0x10006909
sub esi, ebx
xor ecx, ecx
sar esi, 2
mov dword [ebp - 0x38], ecx
test esi, esi
je 0x100069f7
mov eax, dword [ebx]
test eax, eax
je 0x100069ee
push dword [eax]
push eax
lea eax, [ecx + edx]
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x38]
add ecx, dword [eax]
add esp, 0xc
mov dword [ebp - 0x38], ecx
push ebx
mov ecx, edi
call fcn.10006ad0
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
add ebx, 4
dec esi
jne 0x100069c0
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x48]
cmp dword [esi + 0x14], 8
jb 0x10006a02
mov esi, dword [esi]
mov edx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
call fcn.10012b30
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 0xc
test al, al
jne 0x10006a35
xor al, al
jmp 0x10006a5b
mov edx, dword [ebp - 0x38]
push esi
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.10012ef0
add esp, 4
push esi
test eax, eax
jne 0x10006a54
call edi
add esp, 4
xor al, al
jmp 0x10006a5b
call edi
add esp, 4
mov al, 1
push dword [ebp - 0x3c]
movzx esi, al
mov dword [ebp - 0x38], esi
call edi
mov ecx, dword [ebp - 0x14]
add esp, 4
jmp 0x10006909