Function at 0x1006ae6
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x458]
push eax
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x464], esi
call fcn.010062ea
mov eax, dword [ebp + 0x10]
xor edi, edi
lea ecx, [eax + eax]
mov dword [ebp - 0x45c], esi
mov dword [ebp - 0x460], ecx
cmp eax, edi
je 0x1006981
xor eax, eax
mov word [esi], ax
mov eax, dword [ebx]
mov esi, reloc.KERNEL32.dll_TlsFree
cmp dword [ebp - 0x458], eax
je 0x10069bd
push eax
push 0x1001b84
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push ecx
push dword [ebp - 0x464]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
mov eax, dword [ebx + 4]
cmp dword [ebp - 0x454], eax
je 0x10069fa
push eax
push 0x1001b7c
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
mov eax, dword [ebx + 0x14]
cmp dword [ebp - 0x444], eax
je 0x1006a37
push eax
push 0x1001b70
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
mov eax, dword [ebx + 8]
cmp dword [ebp - 0x450], eax
je 0x1006a74
push eax
push 0x1001b60
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
mov eax, dword [ebx + 0xc]
cmp dword [ebp - 0x44c], eax
je 0x1006ab1
push eax
push 0x1001b50
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
mov eax, dword [ebx + 0x34]
cmp dword [ebp - 0x424], eax
je 0x1006aee
push eax
push reloc.KERNEL32.dll_GlobalHandle
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
mov eax, dword [ebx + 0x10]
cmp dword [ebp - 0x448], eax
je 0x1006b2b
push eax
push 0x1001b28
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
mov eax, dword [ebx + 0x18]
cmp dword [ebp - 0x440], eax
je 0x1006b68
push eax
push 0x1001b18
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
mov eax, dword [ebx + 0x1c]
cmp dword [ebp - 0x43c], eax
je 0x1006ba5
push eax
push 0x1001b08
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
mov eax, dword [ebx + 0x20]
cmp dword [ebp - 0x438], eax
je 0x1006be2
push eax
push 0x1001af8
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
mov eax, dword [ebx + 0x38]
cmp dword [ebp - 0x420], eax
je 0x1006c1f
push eax
push 0x1001ae4
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
mov eax, dword [ebx + 0x3c]
cmp dword [ebp - 0x41c], eax
je 0x1006c5c
push eax
push 0x1001acc
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
mov eax, dword [ebx + 0x40]
cmp dword [ebp - 0x418], eax
je 0x1006c99
push eax
push 0x1001ac0
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
add ebx, 0x44
mov ecx, ebx
lea eax, [ebp - 0x414]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006cca
cmp dx, di
je 0x1006cc6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006cca
add eax, 4
add ecx, 4
cmp dx, di
jne 0x1006ca4
xor eax, eax
jmp 0x1006ccf
sbb eax, eax
sbb eax, 0xffffffff
mov esi, reloc.KERNEL32.dll_TlsFree
cmp eax, edi
je 0x1006d06
push ebx
push 0x1001a98
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
mov ebx, dword [ebp - 0x468]
add ebx, 0x24c
mov ecx, ebx
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006d40
cmp dx, di
je 0x1006d3c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006d40
add eax, 4
add ecx, 4
cmp dx, di
jne 0x1006d1a
xor eax, eax
jmp 0x1006d45
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x1006d77
push ebx
push 0x1001a84
push esi
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010067e6
add esp, 0x20
cmp eax, edi
jl 0x1006d7b
xor eax, eax
jmp 0x1006d8b
cmp dword [ebp + 0x10], edi
je 0x1006d8b
mov edx, dword [ebp - 0x464]
xor ecx, ecx
mov word [edx], cx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101bc5d
leave
ret 0xc