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

Disassembly:
push 0xffffffffffffffff
push 0x63dc78
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x80]
xor ebx, ebx
xor eax, eax
mov edi, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], ax
mov dword [esp + 0x78], ebx
mov eax, dword [edi + 0x1c]
xor esi, esi
cmp eax, ebx
jle 0x434def
lea ecx, [ecx]
cmp esi, ebx
jl 0x434e42
cmp esi, dword [edi + 0x1c]
jge 0x434e42
mov ecx, dword [edi + 0x18]
lea eax, [ecx + esi*8]
mov ecx, dword [eax + 4]
mov eax, ebp
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x434de0
test dl, dl
je 0x434ddc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x434de0
add eax, 2
add ecx, 2
test dl, dl
jne 0x434dc0
xor eax, eax
jmp 0x434de5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x434e23
inc esi
cmp esi, dword [edi + 0x1c]
jl 0x434da0
cmp byte [edi + 4], 0
jne 0x434e47
push 1
mov ecx, edi
call fcn.004346a0
test eax, eax
sete al
mov byte [edi + 4], al
test al, al
jne 0x434e47
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00401210
or eax, 0xffffffff
jmp 0x434f66
cmp esi, dword [edi + 0x1c]
jge 0x434e42
mov edx, dword [edi + 0x18]
lea eax, [edx + esi*8]
mov eax, dword [eax]
push ebx
push eax
push 0x66fea8
lea ecx, [esp + 0x2c]
call fcn.004021b0
jmp 0x434e9c
call fcn.005ec455
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ebp, [eax + 1]
mov esi, dword [edi + 8]
test esi, esi
jne 0x434e5d
lea esi, [edi + 0xc]
push 0
push 0xa
lea ecx, [esp + 0x34]
push ecx
push ebp
call fcn.0061ade2
add esp, 0xc
push eax
push esi
push str._stemplate_s.dat
lea ecx, [esp + 0x30]
call fcn.00402320
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x434e8b
lea eax, [esp + 0x24]
push eax
call ebx
cmp eax, 0xffffffff
je 0x434e96
inc ebp
jmp 0x434e53
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x18]
call fcn.00402500
mov byte [esp + 0x78], 3
push ebp
lea edx, [esp + 0x1c]
push 0x66fea8
push edx
call fcn.00402f70
mov esi, dword [esp + 0x2c]
add esp, 0xc
cmp esi, ebx
jne 0x434ed2
lea esi, [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, eax
je 0x434f04
push eax
call ebp
cmp esi, ebx
je 0x434f00
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x434f04
push 0x8007000e
call fcn.00401090
mov dword [esp + 0x14], ebx
mov esi, dword [edi + 0x1c]
lea ecx, [edi + 0x14]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00434d00
mov al, 4
mov byte [esp + 0x78], al
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x78], al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x434f47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 0
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00401210
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0061807e
add esp, 0x68
ret 4