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

Disassembly:
push 0xffffffffffffffff
push 0x560d47
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x454], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0x46c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x124]
xor ebp, ebp
cmp eax, ebp
jl 0x4472d4
mov ecx, dword [esi + 0xcc]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*8]
mov dword [esi + 0x11c], ebp
mov dword [esi + 0xf4], ebp
mov dword [esi + 0xf0], ebp
mov eax, dword [ecx]
cdq
mov edi, 0x3e8
idiv edi
mov ebx, edx
mov edi, eax
cmp dword [esi + 0x108], ebp
je 0x446ba1
mov ecx, dword [ecx + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x446ba1
mov ecx, dword [edi*4 + 0x5b8fa8]
mov ebp, ebx
imul ebp, ebp, 0x1ef8
add ecx, ebp
call fcn.004436f0
test eax, eax
jne 0x446aff
mov ecx, dword [edi*4 + 0x5b8fa8]
add ecx, ebp
call fcn.00445280
mov eax, dword [esi + 0x124]
mov ecx, dword [edi*4 + 0x5b8fa8]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0xcc]
mov eax, dword [eax + edx*8 + 0x14]
push eax
add ecx, ebp
call fcn.00442cb0
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x446b9a
mov edx, dword [esi + 0xcc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x124]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*8 + 0x14]
push 1
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [edi*4 + 0x5b8fa8]
lea edx, [esp + 0x20]
push edx
push eax
add ecx, ebp
call fcn.00444720
test eax, eax
je 0x446b9a
cmp dword [esp + 0x1c], 1
mov eax, dword [esp + 0x18]
jne 0x446b8f
test dword [eax + 0x410], 0x4000
je 0x446b8f
push eax
mov ebx, 1
call fcn.004ff267
add esp, 4
mov eax, ebx
jmp 0x4472d6
push eax
xor ebx, ebx
call fcn.004ff267
add esp, 4
mov eax, ebx
jmp 0x4472d6
call fcn.0050830c
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x446bbb
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x124]
mov edx, dword [esi + 0xcc]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*8 + 0x10]
mov dword [esp + 0x474], ebp
mov ebp, dword [eax - 0xc]
test ebp, ebp
je 0x44724d
push 0
push eax
call fcn.00403150
add esp, 8
test eax, eax
jne 0x44724d
cmp dword [esi + 0x108], eax
je 0x446c6b
mov eax, dword [esi + 0x124]
mov ecx, dword [esi + 0xcc]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*8 + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x446c6b
mov eax, dword [esi + 0x124]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0xcc]
mov ecx, dword [eax + edx*8 + 0x10]
push ecx
lea edx, [esp + 0x18]
push 0x5b98
push edx
call fcn.00402170
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push eax
call fcn.0050bda7
lea ecx, [esp + 0x14]
call fcn.00401b70
jmp 0x4472d4
cmp dword [esi + 0x104], 0
mov ecx, dword [edi*4 + 0x5b8fa8]
je 0x446c9a
imul ebx, ebx, 0x1ef8
mov dword [ecx + ebx + 0xd4], 0
lea ecx, [esp + 0x14]
call fcn.00401b70
jmp 0x4472d4
mov ebp, ebx
imul ebp, ebp, 0x1ef8
add ecx, ebp
call fcn.004436f0
test eax, eax
jne 0x446ce8
mov ecx, dword [edi*4 + 0x5b8fa8]
add ecx, ebp
call fcn.00445280
test eax, eax
jne 0x446ce8
cmp dword [esi + 0x104], eax
jne 0x446cda
mov ecx, dword [edi*4 + 0x5b8fa8]
push 0x53f5
add ecx, ebp
call fcn.0043d6e0
lea ecx, [esp + 0x14]
call fcn.00401b70
jmp 0x4472d4
cmp dword [esi + 0x104], 0
je 0x446d11
mov edx, dword [edi*4 + 0x5b8fa8]
lea ecx, [esp + 0x14]
mov dword [edx + ebp + 0xd4], 0
call fcn.00401b70
jmp 0x4472d4
mov eax, dword [esi + 0x124]
mov ecx, dword [esi + 0xcc]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8 + 0x14]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
jge 0x446d36
push 0x80070057
call fcn.00401350
movzx ecx, word [ecx]
cmp cl, 0x2f
je 0x446de4
cmp cl, 0x7e
je 0x446de4
mov eax, dword [eax]
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.00409b00
mov eax, dword [edi*4 + 0x5b8fa8]
lea ecx, [eax + ebp + 0xec]
mov eax, dword [esi + 0x124]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0xcc]
add esp, 8
push ecx
lea ecx, [eax + edx*8 + 0x14]
call fcn.00402260
mov eax, dword [esi + 0x124]
mov edx, dword [esi + 0xcc]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*8 + 0x14]
mov eax, dword [eax - 0xc]
lea ecx, [edx + ecx*8 + 0x14]
test eax, eax
jle 0x446dc7
dec eax
push eax
call fcn.00413190
cmp ax, 0x2f
je 0x446dc7
mov eax, dword [esi + 0x124]
mov edx, dword [esi + 0xcc]
lea ecx, [eax + eax*2]
push 0x2f
lea ecx, [edx + ecx*8 + 0x14]
call fcn.00405f80
mov edx, dword [esi + 0xcc]
lea eax, [esp + 0x58]
push eax
mov eax, dword [esi + 0x124]
lea ecx, [eax + eax*2]
lea ecx, [edx + ecx*8 + 0x14]
call fcn.004022a0
mov eax, dword [esi + 0x124]
mov ecx, dword [esi + 0xcc]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*8 + 0x14]
push 0x2f
push eax
call fcn.00540fb2
add esp, 8
lea ebx, [eax + 2]
test eax, eax
jne 0x446e0e
mov ebx, 0x57bd68
cmp dword [esi + 0x108], 0
je 0x446e87
lea ecx, [esp + 0x28]
call fcn.0044fce0
mov eax, dword [esi + 0x124]
push 1
lea edx, [eax + eax*2]
mov eax, dword [esi + 0xcc]
mov eax, dword [eax + edx*8 + 0x10]
push 0
push accept
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x484], 1
call fcn.00450840
test eax, eax
je 0x446e76
push 0
lea ecx, [esp + 0x2c]
call fcn.0044d2f0
lea ecx, [esp + 0x28]
mov dword [esi + 0xf4], eax
call fcn.0044d2c0
mov dword [esi + 0x110], 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x474], 0
call fcn.0044fd20
lea ecx, [esp + 0x1c]
call fcn.00401d40
mov ecx, dword [esi + 0xd0]
mov edx, dword [esi + 0x124]
mov eax, dword [edi*4 + 0x5b8fa8]
push ecx
mov ecx, dword [eax + ebp + 0x7c]
inc edx
push edx
mov edx, dword [esi + 0x108]
neg edx
push ecx
sbb edx, edx
push ebx
add edx, 0x53f8
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x48c], 2
call fcn.00402170
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x12c]
add esp, 0x18
push ecx
push 0
push 0xc
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x11c], 0
mov dword [esi + 0x10c], 1
mov ecx, dword [edi*4 + 0x5b8fa8]
push 0x446030
add ecx, ebp
call fcn.0043b9d0
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], 0
lea eax, [esp + 0x24]
push eax
push 0x578e34
push 0x17
push 0
push 0x5956bc
mov byte [esp + 0x488], 3
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esi + 0x120]
test eax, eax
jne 0x446f5a
mov ecx, dword [edi*4 + 0x5b8fa8]
mov edx, dword [ecx + ebp + 0xc0]
mov dword [esp + 0x20], edx
jmp 0x446f66
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [esp + 0x20], ecx
cmp dword [esi + 0x114], 0
je 0x446f9e
cmp dword [esp + 0x20], 0
je 0x446f9e
mov eax, dword [esi + 0x124]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0xcc]
mov eax, dword [eax + edx*8 + 0x10]
push eax
call fcn.00446320
add esp, 4
test eax, eax
je 0x446f9e
mov dword [esp + 0x20], 0
cmp dword [esi + 0x108], 0
je 0x4470f3
cmp dword [0x5ed728], 0
je 0x4470b3
mov eax, dword [esi + 0x124]
mov edx, dword [esi + 0xcc]
lea ecx, [eax + eax*2]
cmp dword [edx + ecx*8 + 8], 0
lea eax, [edx + ecx*8]
jne 0x446fdb
cmp dword [eax + 0xc], 0
je 0x4470b3
mov eax, dword [eax + 0x14]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [edi*4 + 0x5b8fa8]
lea edx, [esp + 0x34]
push edx
push eax
add ecx, ebp
call fcn.004451e0
test eax, eax
je 0x4470b3
mov eax, dword [esi + 0x124]
mov ecx, dword [esi + 0xcc]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*8 + 8]
lea eax, [ecx + eax*8]
cmp edx, dword [esp + 0x28]
jne 0x447037
mov ecx, dword [eax + 0xc]
cmp ecx, dword [esp + 0x2c]
jne 0x447037
mov edx, dword [eax + 4]
cmp edx, dword [esp + 0x34]
je 0x4470b3
lea ecx, [esp + 0x18]
call fcn.00401d40
push ebx
lea eax, [esp + 0x1c]
push 0x5473
push eax
mov byte [esp + 0x480], 4
call fcn.00402170
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0
push 4
push ecx
call fcn.0050bda7
lea ecx, [esp + 0x18]
cmp eax, 7
jne 0x4470a6
call fcn.00401b70
mov eax, dword [esp + 0x24]
mov byte [esp + 0x474], 2
test eax, eax
je 0x44708f
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x1c]
call fcn.00401b70
lea ecx, [esp + 0x14]
call fcn.00401b70
jmp 0x4472d4
mov byte [esp + 0x474], 3
call fcn.00401b70
mov eax, dword [esi + 0x124]
mov edx, dword [esi + 0xcc]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*8]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x100], 1
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
lea ebx, [esi + 0xfc]
push ebx
push edx
push ecx
mov ecx, dword [edi*4 + 0x5b8fa8]
push eax
add ecx, ebp
call fcn.00445a30
jmp 0x44713f
mov eax, dword [esi + 0x124]
mov ecx, dword [esi + 0xcc]
lea edx, [esi + 0x110]
push edx
lea edx, [esi + 0xf4]
push edx
mov edx, dword [esp + 0x28]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov dword [esi + 0x100], 2
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
lea ebx, [esi + 0xfc]
push ebx
push edx
push ecx
mov ecx, dword [edi*4 + 0x5b8fa8]
push eax
add ecx, ebp
call fcn.00443b30
mov ecx, dword [edi*4 + 0x5b8fa8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push eax
add ecx, ebp
call fcn.0043b9d0
cmp dword [esp + 0x18], 0
je 0x4471fe
cmp dword [0x5ed728], 0
je 0x4471df
mov eax, dword [esi + 0x124]
mov edx, dword [esi + 0xcc]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*8]
mov ecx, dword [eax + 0x14]
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x44]
push edx
lea edx, [eax + 4]
push edx
add eax, 8
push eax
push ecx
mov ecx, dword [edi*4 + 0x5b8fa8]
add ecx, ebp
call fcn.004451e0
test eax, eax
jne 0x4471df
mov eax, dword [esi + 0x124]
mov edx, dword [esi + 0xcc]
lea eax, [eax + eax*2]
xor ecx, ecx
mov dword [edx + eax*8 + 0xc], ecx
mov eax, dword [esi + 0x124]
mov edx, dword [esi + 0xcc]
lea eax, [eax + eax*2]
mov dword [edx + eax*8 + 8], ecx
mov eax, dword [esi + 0x124]
mov edx, dword [esi + 0xcc]
lea eax, [eax + eax*2]
mov dword [edx + eax*8 + 4], ecx
mov ecx, dword [ebx]
push 0
mov dword [esi + 0x11c], 0x64
mov eax, dword [0x5ec724]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x44721a
cmp dword [esi + 0x104], 0
jne 0x44721a
mov ecx, dword [edi*4 + 0x5b8fa8]
push 0x53f5
add ecx, ebp
call fcn.0043d6e0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x474], 2
test eax, eax
je 0x447232
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x1c]
call fcn.00401b70
lea ecx, [esp + 0x14]
call fcn.00401b70
mov eax, dword [esp + 0x18]
jmp 0x4472d6
push 0x5ba3
call fcn.00508284
test eax, eax
je 0x44726a
push 0x5ba3
push eax
lea ecx, [esp + 0x1c]
call fcn.00401da0
test ebp, ebp
je 0x44729f
push 0x579154
lea ecx, [esp + 0x18]
call fcn.004022a0
mov eax, dword [esi + 0x124]
mov edx, dword [esi + 0xcc]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*8 + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401fe0
mov esi, dword [esp + 0x14]
push 0
push 0
push esi
call fcn.0050bda7
lea eax, [esi - 0x10]
mov dword [esp + 0x474], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4472d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x46c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x454]
xor ecx, esp
call fcn.0053fa67
add esp, 0x464
ret