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

Disassembly:
push 0xffffffffffffffff
push 0x48af51
mov eax, dword fs:[0]
push eax
sub esp, 0x8f4
mov eax, dword [0x4ac13c]
xor eax, esp
mov dword [esp + 0x8f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ac13c]
xor eax, esp
push eax
lea eax, [esp + 0x908]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x24]
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], bl
call fcn.004102e0
cmp byte [esi + 4], bl
mov dword [esp + 0x910], ebx
je 0x435c18
cmp byte [esp + 0x18], bl
mov dword [esp + 0x910], 0xffffffff
je 0x435c11
mov eax, dword [esp + 0x14]
add dword [eax], 0xffffffff
jne 0x435c11
xor ecx, ecx
lea edx, [eax + 4]
xchg dword [edx], ecx
lea ecx, [eax + 8]
mov eax, SysReAllocString
mov edx, ecx
lock xadd dword [edx], eax
test eax, 0x40000000
jne 0x435c11
cmp eax, 0x80000000
jle 0x435c11
mov eax, ecx
lock bts dword [eax], 0x1e
jb 0x435c11
call fcn.0040bb60
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
jmp 0x435f8e
cmp dword [esi + 0x20], ebx
mov byte [esi + 4], 1
jne 0x435c69
push 4
call fcn.00451fae
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x435c45
lea eax, [esi + 0xc]
mov dword [edi], eax
mov eax, dword [eax + 8]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x435c47
xor edi, edi
cmp edi, ebx
mov dword [esi + 0x20], edi
jne 0x435c69
lea ecx, [esp + 0x14]
mov dword [esp + 0x910], 0xffffffff
call fcn.00410290
xor al, al
jmp 0x435f8e
mov eax, dword [esi + 0x14]
push ebx
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 4
call fcn.00451fae
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov byte [esp + 0x910], 1
je 0x435ca5
push ebx
lea ecx, [esi + 0xc]
push ecx
mov edx, 0x425800
push edx
mov ecx, eax
call fcn.00420a90
jmp 0x435ca7
xor eax, eax
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0x914], bl
call fcn.00417f50
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [esp + 0x90]
push ebx
push ecx
mov dword [esi + 8], eax
call fcn.0044a370
push 0x494490
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x924], 2
call fcn.00412230
add esp, 0x14
mov edi, 8
cmp dword [esp + 0x70], edi
mov byte [esp + 0x910], 3
jb 0x435fb6
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x435d24
cmp word [eax], bx
je 0x435d24
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x435d24
test al, 0x10
je 0x435d62
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.0044a2c0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x91c], 4
call fcn.0040218f
cmp dword [esp + 0x34], edi
mov byte [esp + 0x910], 3
jb 0x435d62
mov edx, dword [esp + 0x20]
push edx
call fcn.00451fd9
add esp, 4
cmp dword [esp + 0x70], edi
mov eax, dword [esp + 0x5c]
jae 0x435d70
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xb0]
call fcn.00448b90
lea eax, [esp + 0x8fc]
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x914], 5
mov word [esp + 0x900], bx
mov dword [esp + 0x902], ebx
mov word [esp + 0x906], bx
call fcn.004487a0
movzx ecx, word [esp + 0x900]
add ecx, 0x2ee0
push ebx
mov dword [esi + 0x150], ecx
mov ebp, 7
push 0x49a2a8
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00402470
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x918], 6
call fcn.00449db0
add esp, 8
cmp dword [esp + 0x34], edi
mov byte [esp + 0x910], 8
jb 0x435e1a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00451fd9
add esp, 4
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00449310
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x91c], 9
call fcn.0040218f
cmp dword [esp + 0x54], edi
mov byte [esp + 0x910], 8
jb 0x435e6c
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00451fd9
add esp, 4
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00449310
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x91c], 0xa
call fcn.0040218f
cmp dword [esp + 0x54], edi
mov byte [esp + 0x910], 8
jb 0x435eae
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00451fd9
add esp, 4
cmp dword [esp + 0x8c], edi
mov eax, dword [esp + 0x78]
jae 0x435ebf
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x88]
push edx
push ebx
push eax
lea ecx, [esp + 0x64]
call fcn.00415990
cmp eax, 0xffffffff
jne 0x435edd
mov dword [esi + 0x178], ebx
mov ecx, dword [esi + 0x14]
mov eax, 0x4357e0
push esi
push eax
call fcn.0042dab0
cmp dword [esp + 0x8c], edi
jb 0x435f02
mov eax, dword [esp + 0x78]
push eax
call fcn.00451fd9
add esp, 4
lea ecx, [esp + 0xac]
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
mov byte [esp + 0x910], 3
call fcn.00448810
cmp dword [esp + 0x70], edi
jb 0x435f3c
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00451fd9
add esp, 4
cmp dword [esp + 0xa8], edi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jb 0x435f62
mov edx, dword [esp + 0x94]
push edx
call fcn.00451fd9
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
mov dword [esp + 0x910], 0xffffffff
call fcn.00410290
mov al, 1
mov ecx, dword [esp + 0x908]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8f0]
xor ecx, esp
call fcn.0045b7a6
add esp, 0x900
ret
lea eax, [esp + 0x5c]
jmp 0x435d0f