Function at 0x10081830
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101652c8
mov eax, dword fs:[0]
push eax
sub esp, 0x9f0
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x9e8], eax
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0xa00]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
cmp dword [edi + 0x24], ebx
jne 0x100818c2
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 dword [esp + 0xa08], ebx
cmp esi, ebx
je 0x100818b2
mov eax, edi
call fcn.100a12c0
jmp 0x100818b4
xor eax, eax
mov dword [esp + 0xa08], 0xffffffff
mov dword [edi + 0x24], eax
mov edi, dword [edi + 0x24]
cmp dword [edi + 0x1c], 0xffffffff
jne 0x100818d9
mov ecx, dword [edi + 4]
push ebx
push 1
push ecx
mov ecx, edi
call fcn.100a13e0
mov dword [edi + 0x1c], ebx
lea esp, [esp]
cmp dword [edi + 0x1c], 0xffffffff
jne 0x100818f7
mov edx, dword [edi + 4]
push ebx
push 1
push edx
mov ecx, edi
call fcn.100a13e0
mov dword [edi + 0x1c], ebx
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 0x10]
jge 0x1008199e
mov ecx, dword [edi + 0xc]
mov esi, dword [ecx + eax*4]
inc eax
mov dword [edi + 0x1c], eax
cmp byte [esi + 0xf], bl
je 0x100818e0
mov edx, esi
call fcn.100a1220
test al, al
je 0x100818e0
cmp byte [esi + 0xd], bl
je 0x100818e0
cmp byte [esi + 0x10], bl
jne 0x100818e0
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x214]
mov ecx, dword [esi + 4]
cmp eax, ebx
je 0x1008195b
cmp ecx, ebx
je 0x1008195b
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
cmp eax, ebx
jne 0x1008195b
cmp dword [esp + 0x34], ebx
jne 0x10081efd
mov dword [esp + 0x34], esi
jmp 0x100818e0
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x218]
mov ecx, dword [esi + 4]
cmp eax, ebx
je 0x100818e0
cmp ecx, ebx
je 0x100818e0
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
cmp eax, ebx
jne 0x100818e0
cmp dword [esp + 0x38], ebx
jne 0x10081efd
mov dword [esp + 0x38], esi
jmp 0x100818e0
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x10081efd
call fcn.100a0da0
cmp eax, 1
jne 0x10081efd
mov esi, dword [esp + 0x20]
push ebx
call fcn.10080da0
mov edi, eax
cmp edi, ebx
jge 0x100819e5
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10081bc9
mov eax, 0x80040753
jmp 0x100822df
lea esi, [esp + 0x44]
call fcn.1007ec70
mov ecx, esi
mov dword [esp + 0xa08], 1
push ecx
mov ecx, dword [esp + 0x38]
call fcn.100a1000
sub esp, 0x18
mov eax, esp
mov edx, 3
mov dword [esp + 0x40], esp
mov dword [eax + 0x10], ebx
mov word [eax], dx
mov dword [eax + 8], ebx
mov byte [esp + 0xa20], 2
mov eax, dword [esp + 0x60]
mov edi, dword [eax]
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x54], esp
push esi
mov dword [esi + 0x10], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push edi
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jge 0x10081a5c
push 0x10424228
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x50], eax
call sub.MSVCR100.dll__CxxThrowException
mov byte [esp + 0xa38], 1
call fcn.10080ef0
sub esp, 0x18
mov dword [esp + 0x54], eax
mov eax, esp
mov dword [esp + 0x58], edx
mov edx, 3
mov dword [esp + 0x40], esp
mov dword [eax + 0x10], ebx
mov word [eax], dx
mov dword [eax + 8], 0xffffffff
mov byte [esp + 0xa20], dl
mov eax, dword [esp + 0x60]
mov edi, dword [eax]
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x54], esp
push esi
mov dword [esi + 0x10], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push edi
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jge 0x10081acb
push 0x10424228
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x50], eax
call sub.MSVCR100.dll__CxxThrowException
mov byte [esp + 0xa38], 1
call fcn.10080ef0
lea edi, [esp + 0x14]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x14], ebx
call fcn.10076aa0
mov byte [esp + 0xa08], 4
mov byte [esp + 0x18], bl
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x38], ebx
jne 0x10081bd0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x338], eax
add edi, 8
lea esi, [esp + 0x18]
mov al, 1
lea ecx, [esp + 0x1e4]
mov dword [esp + 0x1e8], ebx
mov dword [esp + 0x1e4], 5
mov dword [esp + 0x334], edx
call fcn.100ab420
mov edi, eax
cmp edi, ebx
setl al
cmp al, bl
jne 0x10081e18
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x1e4]
mov dword [esp + 0x334], edx
mov dword [esp + 0x338], eax
push ecx
mov ecx, dword [esp + 0x18]
mov dl, 1
mov eax, esi
mov dword [esp + 0x1ec], ebx
mov dword [esp + 0x1e8], 5
call fcn.100b0a30
mov edi, eax
cmp edi, ebx
setl al
cmp al, bl
je 0x1008228b
lea esi, [esp + 0x14]
mov byte [esp + 0xa08], 1
call fcn.1000a090
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0xa0c], 0xffffffff
call fcn.1007ecf0
mov eax, edi
jmp 0x100822df
lea esi, [esp + 0x58]
call fcn.1007ec70
mov ecx, dword [esp + 0x38]
mov eax, esi
push eax
mov byte [esp + 0xa0c], 5
call fcn.100a1000
mov ecx, dword [esp + 0x5c]
mov edi, dword [ecx]
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x40], esp
push esi
mov dword [esi + 0x10], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push edi
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jge 0x10081c25
push 0x10424228
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], eax
call sub.MSVCR100.dll__CxxThrowException
mov byte [esp + 0xa20], 6
mov eax, dword [esp + 0x60]
mov edi, dword [eax]
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x54], esp
push esi
mov dword [esi + 0x10], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push edi
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jge 0x10081c65
push 0x10424228
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x6c], eax
call sub.MSVCR100.dll__CxxThrowException
mov byte [esp + 0xa38], 5
call fcn.10080ef0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], edx
call fcn.100a0da0
cmp eax, 0x10
jg 0x10081eac
je 0x10081e45
dec eax
je 0x10081d68
sub eax, 3
je 0x10081d04
sub eax, 4
jne 0x10081ec5
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x338], eax
add edi, 8
lea esi, [esp + 0x18]
xor al, al
lea ecx, [esp + 0x1e4]
mov dword [esp + 0x1e8], ebx
mov dword [esp + 0x1e4], 5
mov dword [esp + 0x334], edx
call fcn.100ab420
mov edi, eax
cmp edi, ebx
setl al
cmp al, bl
jne 0x10082189
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
jmp 0x10081dc0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x490], eax
add edi, 8
lea esi, [esp + 0x18]
mov al, 1
lea ecx, [esp + 0x33c]
mov dword [esp + 0x340], ebx
mov dword [esp + 0x33c], 5
mov dword [esp + 0x48c], edx
call fcn.100ab420
mov edi, eax
cmp edi, ebx
setl al
cmp al, bl
jne 0x10082189
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x8c]
push edx
xor dl, dl
jmp 0x10081dca
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x898], eax
add edi, 8
lea esi, [esp + 0x18]
mov al, 1
lea ecx, [esp + 0x744]
mov dword [esp + 0x748], ebx
mov dword [esp + 0x744], 5
mov dword [esp + 0x894], edx
call fcn.100ab420
mov edi, eax
cmp edi, ebx
setl al
cmp al, bl
jne 0x10082189
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x8c]
push edx
mov dl, 1
mov dword [esp + 0x1e0], eax
mov dword [esp + 0x1e4], ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], 5
call fcn.100b0a30
mov edi, eax
cmp edi, ebx
setl al
cmp al, bl
je 0x10082279
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0xa0c], 4
call fcn.1007ecf0
lea esi, [esp + 0x14]
mov byte [esp + 0xa08], 1
call fcn.1000a090
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0xa0c], 0xffffffff
call fcn.1007ecf0
mov eax, edi
jmp 0x100822df
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x5e8], eax
add edi, 8
lea esi, [esp + 0x18]
mov al, 1
lea ecx, [esp + 0x494]
mov dword [esp + 0x498], ebx
mov dword [esp + 0x494], 5
mov dword [esp + 0x5e4], edx
call fcn.100ab420
mov edi, eax
cmp edi, ebx
setl al
cmp al, bl
je 0x10081db8
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0xa0c], 4
call fcn.1007ecf0
jmp 0x10081ba3
cmp eax, 0x20
je 0x100821a0
cmp eax, 0x40
je 0x1008206d
cmp eax, 0x100
je 0x10081f07
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0xa0c], 4
call fcn.1007ecf0
lea esi, [esp + 0x14]
mov byte [esp + 0xa08], 1
call fcn.1000a090
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0xa0c], 0xffffffff
call fcn.1007ecf0
mov eax, 1
jmp 0x100822df
lea esi, [esp + 0x78]
call fcn.1007ec70
mov byte [esp + 0xa08], 8
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x60], ebx
jle 0x10081ff1
push 0x18
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x10081f40
mov ecx, eax
call fcn.10027a70
mov edi, eax
jmp 0x10081f42
xor edi, edi
mov eax, dword [esp + 0x18]
mov ecx, 6
mov word [edi], cx
mov edx, dword [esp + 0x5c]
mov ecx, dword [edx + eax*4]
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x54], esp
push esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ecx
mov dword [esi + 0x10], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, dword [esp + 0x3c]
push edx
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jl 0x10082047
mov byte [esp + 0xa20], 9
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x5c], esp
push esi
mov dword [esp + 0x58], ecx
mov dword [esi + 0x10], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, dword [esp + 0x54]
push edx
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jl 0x1008205a
mov byte [esp + 0xa38], 8
call fcn.10080ef0
mov dword [edi + 8], eax
lea eax, [esp + 0x28]
push eax
lea esi, [esp + 0x7c]
mov dword [edi + 0xc], edx
call fcn.1009f830
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x60]
jl 0x10081f26
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
add edx, 8
push edx
mov edx, 0x100
call fcn.100aaab0
mov edi, eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0xa0c], 5
call fcn.1007ecf0
cmp edi, ebx
jge 0x10082279
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0xa0c], 4
call fcn.1007ecf0
jmp 0x10081ba3
push 0x10424228
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], eax
call sub.MSVCR100.dll__CxxThrowException
push 0x10424228
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x5c], eax
call sub.MSVCR100.dll__CxxThrowException
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x73c], ecx
add edi, 8
lea esi, [esp + 0x18]
mov al, 1
lea ecx, [esp + 0x5ec]
mov dword [esp + 0x5f0], ebx
mov dword [esp + 0x5ec], 5
mov dword [esp + 0x740], edx
call fcn.100ab420
mov edi, eax
cmp edi, ebx
setl al
cmp al, bl
jne 0x10081e06
mov edx, dword [esp + 0x5c]
mov edi, dword [edx + 4]
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x44], esp
push esi
mov dword [esi + 0x10], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push edi
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jge 0x100820f6
mov dword [esp + 0x40], eax
push 0x10424228
lea eax, [esp + 0x44]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov byte [esp + 0xa20], 7
mov ecx, dword [esp + 0x60]
mov edi, dword [ecx]
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x6c], esp
push esi
mov dword [esi + 0x10], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push edi
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jge 0x10082136
push 0x10424228
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x5c], eax
call sub.MSVCR100.dll__CxxThrowException
mov byte [esp + 0xa38], 5
call fcn.10080ef0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1dc], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x1e0], edx
push eax
mov dl, 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], 5
call fcn.100b0a30
mov edi, eax
cmp edi, ebx
setl al
cmp al, bl
je 0x10082279
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0xa0c], 4
call fcn.1007ecf0
jmp 0x10081ba3
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x9ec], eax
mov dword [esp + 0x9f0], ecx
add edi, 8
lea esi, [esp + 0x18]
mov al, 1
lea ecx, [esp + 0x89c]
mov dword [esp + 0x8a0], ebx
mov dword [esp + 0x89c], 5
call fcn.100ab420
mov edi, eax
cmp edi, ebx
setl al
cmp al, bl
je 0x1008222b
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0xa0c], 4
call fcn.1007ecf0
lea esi, [esp + 0x14]
mov byte [esp + 0xa08], 1
call fcn.1000a090
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0xa0c], 0xffffffff
call fcn.1007ecf0
mov eax, edi
jmp 0x100822df
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x8c]
mov dword [esp + 0x1dc], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1e0], edx
push eax
mov dl, 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], 5
call fcn.100b0a30
mov edi, eax
cmp edi, ebx
setl al
cmp al, bl
jne 0x10082189
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0xa0c], 4
call fcn.1007ecf0
mov esi, dword [esp + 0x34]
call fcn.100a11f0
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x100822a1
call fcn.100a11f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
mov dword [ecx], eax
cmp eax, ebx
je 0x100822b7
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x14]
mov byte [esp + 0xa08], 1
call fcn.1000a090
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0xa0c], 0xffffffff
call fcn.1007ecf0
xor eax, eax
mov ecx, dword [esp + 0xa00]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9e8]
xor ecx, esp
call fcn.10148524
mov esp, ebp
pop ebp
ret 8