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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 8], eax
or dword [ebp - 0x14], 0xffffffff
mov eax, edx
push ebx
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x30]
push esi
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xc], ecx
push edi
mov eax, dword [eax]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], edi
call fcn.10030a2b
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100345d0
push edi
push edi
xor edx, edx
mov ecx, esi
call fcn.1008291e
test dword [ebp - 0x30], 0x10000000
je 0x100346ac
push 0x100866a4
push 0x1008601c
mov edx, 0x10035a30
mov ecx, 0x100359a0
call fcn.1004fb8b
mov edi, eax
test edi, edi
jns 0x10034611
push edi
push 0x463
mov ecx, 0x10006b74
call fcn.1003a254
jmp 0x10034ad8
mov esi, dword [0x100866b4]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov ecx, esi
call dword [0x10087410]
call esi
mov dword [ebp - 0x14], eax
mov ebx, 0x10006b74
mov esi, 0x80070000
cmp eax, 0xffffffff
jne 0x10034678
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1003464d
movzx eax, ax
or eax, esi
test eax, eax
jns 0x10034662
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x10034669
movzx edi, di
or edi, esi
jmp 0x10034667
mov edi, 0x80004005
test edi, edi
jns 0x10034680
push edi
push 0x46e
mov ecx, ebx
call fcn.1003a254
test edi, edi
js 0x10034990
push dword [ebp - 0x38]
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov edx, dword [ebp + 0xc]
call fcn.1004bdbc
mov edi, eax
test edi, edi
jns 0x10034993
push edi
push 0x476
mov ecx, ebx
call fcn.1003a254
jmp 0x10034993
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push 8
pop edx
call fcn.1003440f
mov edi, eax
mov ebx, 0x10006b74
test edi, edi
jns 0x100346f8
push edi
push 0x486
mov ecx, ebx
call fcn.1003a254
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
push eax
xor edx, edx
call fcn.1003440f
mov edi, eax
test edi, edi
jns 0x100346f8
push edi
push 0x489
mov ecx, ebx
call fcn.1003a254
jmp 0x10034ac1
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
mov ecx, 0x80070003
test al, al
jne 0x1003473b
push ecx
mov edi, ecx
mov ecx, ebx
push 0x494
call fcn.1003a254
mov edx, dword [ebp - 0xc]
xor ecx, ecx
push 0x495
push ebx
push edi
push 0x10006b98
push dword [ebp - 0x10]
inc ecx
call fcn.1002fae3
test edi, edi
js 0x10034ac1
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x10034782
mov eax, 0x80070003
mov ecx, ebx
push eax
push 0x4a0
mov edi, eax
call fcn.1003a254
mov edx, dword [ebp - 0xc]
xor ecx, ecx
push 0x4a1
push ebx
push edi
push 0x10006b98
push esi
inc ecx
call fcn.1002fae3
test edi, edi
js 0x10034ac1
movzx eax, word [ebp - 0x28]
add eax, 0x10
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x100347d2
movzx eax, word [ebp - 0x28]
push eax
push dword [ebp - 0x24]
lea eax, [ecx + 0xc]
push eax
call dword [sym.imp.msvcrt.dll_memmove]
mov ecx, dword [ebp - 0x20]
add esp, 0xc
movzx eax, word [ebp - 0x28]
and dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov byte [ecx], 1
jmp 0x1003482d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100347e6
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x100347ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x10034806
movzx edi, di
or edi, 0x80070000
jmp 0x10034804
mov edi, 0x80004005
test edi, edi
jns 0x10034815
push edi
push 0x4b7
mov ecx, ebx
call fcn.1003a254
mov edx, dword [ebp - 0xc]
xor ecx, ecx
push 0x4b8
push ebx
push edi
push 0x100041e4
push esi
inc ecx
call fcn.1002fae3
test edi, edi
js 0x10034aaa
movzx eax, word [ebp - 0x1c]
add eax, 0x10
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x1003487a
movzx ecx, word [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
movzx eax, word [ebp - 0x1c]
add esp, 0xc
and dword [esi + 4], 0
mov dword [esi + 8], eax
mov byte [esi], 1
jmp 0x100348d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1003488e
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x100348a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x100348ae
movzx edi, di
or edi, 0x80070000
jmp 0x100348ac
mov edi, 0x80004005
test edi, edi
jns 0x100348bd
push edi
push 0x4ce
mov ecx, ebx
call fcn.1003a254
mov edx, dword [ebp - 0xc]
xor ecx, ecx
push 0x4cf
push ebx
push edi
push 0x100041e4
push dword [ebp + 8]
inc ecx
call fcn.1002fae3
test edi, edi
js 0x10034a93
movzx eax, word [ebp - 0x28]
mov edx, dword [ebp - 0x20]
add eax, 0x10
mov ecx, dword [ebp - 0xc]
push 0xa
push eax
push edx
mov edx, dword [ebp - 0x2c]
call fcn.1003574f
mov edi, eax
test edi, edi
js 0x10034976
movzx eax, word [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
add eax, 0x10
mov ecx, dword [ebp - 0xc]
push 0xa
push eax
push esi
call fcn.1003574f
mov edi, eax
test edi, edi
jns 0x10034a93
mov edx, dword [ebp - 0xc]
xor ecx, ecx
push 0x4ed
push ebx
push edi
push 0x10006bdc
push dword [ebp + 8]
inc ecx
call fcn.1002fae3
movzx eax, word [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add eax, 0x10
push 0xa
push eax
push esi
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.1003574f
test eax, eax
jns 0x10034a93
push 0x4fc
push ebx
push eax
push 0x10006c08
push dword [ebp - 0x10]
xor ecx, ecx
mov edx, esi
inc ecx
call fcn.1002fae3
jmp 0x10034a93
mov edx, dword [ebp - 0xc]
xor ecx, ecx
push 0x504
push ebx
push edi
push 0x10006bdc
push dword [ebp - 0x10]
inc ecx
call fcn.1002fae3
mov esi, dword [ebp - 0x14]
cmp esi, 0xffffffff
je 0x10034a93
mov esi, dword [0x100866a8]
mov ecx, esi
push 0
call dword [0x10087410]
call esi
test edi, edi
js 0x10034a2a
push dword [ebp - 0x14]
mov esi, dword [0x100866b0]
mov ecx, esi
call dword [0x10087410]
call esi
test eax, eax
jne 0x10034a26
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100349dd
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x100349f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x100349fd
movzx edi, di
or edi, 0x80070000
jmp 0x100349fb
mov edi, 0x80004005
test edi, edi
jns 0x10034a0c
push edi
push 0x52a
mov ecx, ebx
call fcn.1003a254
mov edx, dword [ebp - 0xc]
xor ecx, ecx
push 0x52c
push ebx
push edi
push 0x10006c38
push dword [ebp - 0x10]
inc ecx
call fcn.1002fae3
test edi, edi
jns 0x10034a8a
push dword [ebp - 0x14]
mov esi, dword [0x100866ac]
mov ecx, esi
call dword [0x10087410]
call esi
test eax, eax
jne 0x10034a8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10034a55
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x10034a6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10034a70
movzx eax, ax
or eax, 0x80070000
jmp 0x10034a70
mov eax, 0x80004005
mov edx, dword [ebp - 0xc]
xor ecx, ecx
push 0x535
push ebx
push eax
push 0x10006c6c
push dword [ebp - 0x10]
inc ecx
call fcn.1002fae3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10034aaa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10034ac1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10034ad8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x18], 0
je 0x10034af2
push dword [ebp - 0x18]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x24], 0
je 0x10034b0c
push dword [ebp - 0x24]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 0xc