Function at 0x444eb0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x464d3d
push eax
mov dword fs:[0], esp
sub esp, 0x444
push ebx
mov ebx, dword [esp + 0x458]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
je 0x44560f
mov esi, dword [esp + 0x468]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44560f
lea eax, [ebx + 0x8c]
push esi
push eax
call fcn.00402880
add esp, 8
test eax, eax
je 0x444f14
mov eax, 1
jmp 0x445611
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add ebx, 0xbe0
push ebx
call edi
test eax, eax
je 0x44560f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, dword [0x46f42c]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x18], ecx
je 0x444f89
mov edx, esi
shr edx, 0x10
jne 0x444f5b
and esi, 0xffff
lea ecx, [esp + 0x18]
push esi
call fcn.00407c70
jmp 0x444f89
push esi
call edi
mov edi, eax
cmp edi, ebp
je 0x444f89
push edi
lea ecx, [esp + 0x1c]
call fcn.00408040
test eax, eax
je 0x444f89
mov edx, dword [esp + 0x18]
lea eax, [edi + edi]
push eax
lea ecx, [edi + edi + 2]
push esi
push ecx
push edx
call fcn.00407060
add esp, 0x10
mov al, byte [esp + 0x17]
mov dword [esp + 0x45c], ebp
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0x45c], 1
push ecx
push ebx
call fcn.004023f0
mov eax, dword [esp + 0x3c]
add esp, 8
cmp eax, ebp
jne 0x444fc8
mov dword [esp + 0x1c], ebp
jmp 0x444fd5
mov ecx, dword [esp + 0x38]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
cmp ecx, ebx
jle 0x4450b6
mov edx, dword [eax + ebp*4]
cmp dword [edx - 8], ebx
je 0x4450a9
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
mov eax, dword [0x46f42c]
cmp esi, ebx
mov dword [esp + 0x10], eax
je 0x445052
mov ecx, esi
shr ecx, 0x10
jne 0x445020
and esi, 0xffff
lea ecx, [esp + 0x10]
push esi
call fcn.00407c70
jmp 0x445052
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebx
je 0x445052
push edi
lea ecx, [esp + 0x14]
call fcn.00408040
test eax, eax
je 0x445052
mov ecx, dword [esp + 0x10]
lea edx, [edi + edi]
push edx
lea eax, [edi + edi + 2]
push esi
push eax
push ecx
call fcn.00407060
add esp, 0x10
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebx
je 0x445076
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], ebx
je 0x445076
push ecx
push eax
call fcn.004554ed
add esp, 8
test eax, eax
je 0x445122
mov eax, dword [esp + 0x10]
mov ecx, dword [0x46f430]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4450a5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4450a5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004535f0
add esp, 4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
inc ebp
cmp ebp, ecx
jl 0x444fe3
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x45c], 0
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00408780
mov edx, dword [esp + 0x34]
push edx
call fcn.004535f0
add esp, 4
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x18]
mov edx, dword [0x46f430]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x44560f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x44560f
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004535f0
add esp, 4
jmp 0x44560f
mov eax, dword [esp + 0x10]
mov edx, dword [0x46f430]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x445151
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x445151
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.004535f0
add esp, 4
mov eax, dword [esp + 0x464]
lea esi, [eax + 0xc58]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x44539a
mov ecx, dword [0x46f42c]
mov dword [esp + 0x10], ecx
mov dl, byte [esp + 0x17]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x20], dl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x20]
mov byte [esp + 0x45c], 3
push eax
push esi
call fcn.004023f0
mov ecx, dword [esp + 0x2c]
add esp, 8
cmp ecx, ebx
jne 0x4451ad
xor eax, eax
jmp 0x4451b6
mov eax, dword [esp + 0x28]
sub eax, ecx
sar eax, 2
cmp ebp, ebx
jl 0x445328
cmp ebp, eax
jge 0x445328
mov edx, dword [ecx + ebp*4]
cmp dword [edx - 8], ebx
je 0x445328
mov eax, dword [esp + 0x10]
mov ebx, 0x3e8
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
jg 0x4451eb
cmp dword [eax - 4], ebx
jge 0x445232
mov esi, dword [eax - 8]
cmp esi, ebx
jle 0x4451f4
mov ebx, esi
push ebx
lea ecx, [esp + 0x14]
call fcn.00408040
test eax, eax
jne 0x445206
xor esi, esi
jmp 0x445234
lea eax, [esi + esi + 2]
lea ecx, [edi + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea edx, [ebx + ebx + 2]
push ecx
push edx
push eax
call fcn.00407060
mov ecx, dword [esp + 0x20]
add esp, 0x10
push edi
mov dword [ecx - 8], esi
call fcn.00408420
mov eax, dword [esp + 0x10]
xor esi, esi
mov ebx, dword [esp + 0x468]
push eax
push esi
push ebx
call fcn.00402230
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00408290
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], si
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + ebp*4]
push ecx
push eax
call fcn.004554ed
add esp, 8
test eax, eax
je 0x445322
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x464], 2
call fcn.00408780
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004535f0
mov eax, dword [esp + 0x14]
mov ecx, dword [0x46f430]
add esp, 4
mov dword [esp + 0x24], esi
lea edx, [eax - 0xc]
mov dword [esp + 0x28], esi
cmp edx, ecx
mov dword [esp + 0x2c], esi
je 0x4452e9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4452e9
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004535f0
add esp, 4
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x464], 0
call fcn.00408780
mov eax, dword [esp + 0x34]
push eax
call fcn.004535f0
add esp, 4
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
jmp 0x4450e6
mov ecx, dword [esp + 0x24]
jmp 0x44532f
mov ebx, dword [esp + 0x468]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x45c], 2
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00408780
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004535f0
mov eax, dword [esp + 0x14]
mov ecx, dword [0x46f430]
add esp, 4
xor ebp, ebp
lea edx, [eax - 0xc]
mov dword [esp + 0x24], ebp
cmp edx, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x45c], 1
je 0x4453a3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4453a3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004535f0
add esp, 4
jmp 0x4453a3
mov ebx, dword [esp + 0x468]
xor ebp, ebp
mov ecx, dword [esp + 0x464]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [ecx + 0xd98]
push edi
call esi
test eax, eax
je 0x44558b
mov edx, dword [0x46f42c]
cmp ebx, ebp
mov dword [esp + 0x10], edx
je 0x445417
mov eax, ebx
shr eax, 0x10
jne 0x4453e9
mov eax, ebx
lea ecx, [esp + 0x10]
and eax, 0xffff
push eax
call fcn.00407c70
jmp 0x445417
push ebx
call esi
mov esi, eax
cmp esi, ebp
je 0x445417
push esi
lea ecx, [esp + 0x14]
call fcn.00408040
test eax, eax
je 0x445417
mov eax, dword [esp + 0x10]
lea ecx, [esi + esi]
push ecx
lea edx, [esi + esi + 2]
push ebx
push edx
push eax
call fcn.00407060
add esp, 0x10
push 0x46f964
push 0x3e8
lea ecx, [esp + 0x18]
mov byte [esp + 0x464], 4
call fcn.00407e80
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00407f40
push ebx
lea ecx, [esp + 0x20]
call fcn.00407200
push str.....
push 0x3e8
lea ecx, [esp + 0x24]
mov byte [esp + 0x464], 5
call fcn.00407e80
push eax
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call fcn.00407f40
lea ecx, [esp + 0x17]
push ecx
lea ecx, [esp + 0x24]
call fcn.00446690
lea edx, [esp + 0x20]
mov byte [esp + 0x45c], 6
push edx
push edi
call fcn.004023f0
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00408650
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x40], eax
jle 0x445558
mov ebp, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebx + esi*4]
mov edx, dword [ecx - 8]
test edx, edx
je 0x44554f
mov dx, word [0x47a15c]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46]
mov word [esp + 0x44], dx
mov word [esp + 0x24c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x24e]
mov edx, dword [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + esi*4]
push eax
lea eax, [esp + 0x48]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + esi*4]
push eax
lea eax, [esp + 0x250]
push edx
push eax
call ebp
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x44]
push ecx
call edi
test eax, eax
jne 0x445547
lea edx, [esp + 0x24c]
push edx
call edi
test eax, eax
je 0x4455b7
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
inc esi
cmp esi, eax
jl 0x4454be
lea ecx, [esp + 0x20]
mov byte [esp + 0x45c], 5
call fcn.004070b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x45c], 4
call fcn.00408010
lea ecx, [esp + 0x10]
mov byte [esp + 0x45c], 1
call fcn.00408010
lea ecx, [esp + 0x30]
mov byte [esp + 0x45c], 0
call fcn.004070b0
lea ecx, [esp + 0x18]
mov dword [esp + 0x45c], 0xffffffff
call fcn.00408010
mov eax, 1
jmp 0x445611
lea ecx, [esp + 0x20]
mov byte [esp + 0x45c], 5
call fcn.004070b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x45c], 4
call fcn.00408010
lea ecx, [esp + 0x10]
mov byte [esp + 0x45c], 1
call fcn.00408010
lea ecx, [esp + 0x30]
mov byte [esp + 0x45c], 0
call fcn.004070b0
lea ecx, [esp + 0x18]
mov dword [esp + 0x45c], 0xffffffff
call fcn.00408010
xor eax, eax
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x450
ret 8