Function at 0x433ac0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66db40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x74b738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], 0
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x433cd2
push 1
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0051acf0
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x433b3f
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00441ae0
mov edx, dword [ebp - 0x10]
cmp dword [edx - 8], 0x104
jl 0x433eae
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0x10]
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x433eae
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x433eae
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax + ecx*2], dx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 1
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x433eb8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, 0x6ea36c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x433bdd
movzx eax, ax
push eax
call fcn.00441820
jmp 0x433be9
push 1
push 0x6ea36c
call fcn.00441d80
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00433710
add esp, 4
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
test eax, eax
sete byte [ebp + 0xb]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433c26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
je 0x433ce9
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x433cb3
mov edi, dword [ebp - 0x20]
cmp esi, edi
je 0x433c65
mov edx, dword [esi]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433c5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x433c42
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
sub eax, esi
sar eax, 2
lea ecx, [eax*4]
mov eax, esi
cmp ecx, 0x1000
jb 0x433c94
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x433c94
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.00669e69
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x433cd2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp - 0x20]
mov eax, edi
mov esi, dword [ebp - 0x24]
sub eax, esi
sar eax, 2
mov dword [ebp + 8], edi
cmp eax, 2
jae 0x433d6a
mov byte [ebp - 4], 0
test esi, esi
je 0x433cb3
cmp esi, edi
je 0x433d33
nop word [eax + eax]
mov edx, dword [esi]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433d29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x433d10
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
sub eax, esi
sar eax, 2
lea ecx, [eax*4]
mov eax, esi
cmp ecx, 0x1000
jb 0x433c94
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x433c94
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [ebp + 8]
lea edi, [esi + 4]
mov dword [ebp - 0x14], edi
cmp edi, ecx
je 0x433de7
mov eax, ecx
nop dword [eax]
mov ecx, dword [edi]
mov edi, dword [esi]
sub edi, 0x10
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x433dd4
cmp dword [edi + 0xc], 0
jl 0x433dc6
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x433dc6
push edx
call fcn.00441300
mov dword [ebp - 0x18], eax
lea ecx, [edi + 0xc]
add esp, 4
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x433dbc
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [esi], eax
jmp 0x433dd1
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.00441d80
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
add esi, 4
add edi, 4
mov dword [ebp - 0x14], edi
cmp edi, eax
jne 0x433d80
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx - 4]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433e01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
add edi, 0xfffffffc
mov dword [ebp - 0x20], edi
cmp ecx, eax
je 0x433e3a
mov esi, dword [ecx]
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], ecx
mov dword [edi + 8], eax
mov edi, edx
mov dword [ebp - 0x20], edi
jmp 0x433e3d
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
test esi, esi
je 0x433cb3
cmp esi, edi
je 0x433e77
mov edx, dword [esi]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433e6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x433e54
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
sub eax, esi
sar eax, 2
lea ecx, [eax*4]
mov eax, esi
cmp ecx, 0x1000
jb 0x433c94
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x433c94
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0x80070057
call fcn.00422220
push 0x80004005
call fcn.00422220
int3