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

Disassembly:
push 0xffffffffffffffff
push 0x560c1c
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x454], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
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 0x4468da
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 0x4461f1
mov ecx, dword [ecx + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4461f1
mov ecx, dword [edi*4 + 0x5b9068]
mov ebp, ebx
imul ebp, ebp, 0x1ee8
add ecx, ebp
call fcn.00442c70
test eax, eax
jne 0x44614f
mov ecx, dword [edi*4 + 0x5b9068]
add ecx, ebp
call fcn.00444800
mov eax, dword [esi + 0x124]
mov ecx, dword [edi*4 + 0x5b9068]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0xcc]
mov eax, dword [eax + edx*8 + 0x14]
push eax
add ecx, ebp
call fcn.004422e0
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x4461ea
mov edx, dword [esi + 0xcc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x124]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*8 + 0x14]
push 1
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [edi*4 + 0x5b9068]
lea edx, [esp + 0x24]
push edx
push eax
add ecx, ebp
call fcn.00443cc0
test eax, eax
je 0x4461ea
cmp dword [esp + 0x18], 1
mov eax, dword [esp + 0x1c]
jne 0x4461df
test dword [eax + 0x410], 0x4000
je 0x4461df
push eax
mov ebx, 1
call fcn.004ff96a
add esp, 4
mov eax, ebx
jmp 0x4468dc
push eax
xor ebx, ebx
call fcn.004ff96a
add esp, 4
mov eax, ebx
jmp 0x4468dc
call fcn.005089db
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x44620b
push 0x80004005
call fcn.00401340
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 0x446853
push 0
push eax
call fcn.00403240
add esp, 8
test eax, eax
jne 0x446853
cmp dword [esi + 0x108], eax
je 0x4462bb
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 0x4462bb
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.00402140
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push eax
call fcn.0050c485
lea ecx, [esp + 0x14]
call fcn.00401b40
jmp 0x4468da
cmp dword [esi + 0x104], 0
mov ecx, dword [edi*4 + 0x5b9068]
je 0x4462ea
imul ebx, ebx, 0x1ee8
mov dword [ecx + ebx + 0xc0], 0
lea ecx, [esp + 0x14]
call fcn.00401b40
jmp 0x4468da
mov ebp, ebx
imul ebp, ebp, 0x1ee8
add ecx, ebp
call fcn.00442c70
test eax, eax
jne 0x446338
mov ecx, dword [edi*4 + 0x5b9068]
add ecx, ebp
call fcn.00444800
test eax, eax
jne 0x446338
cmp dword [esi + 0x104], eax
jne 0x44632a
mov ecx, dword [edi*4 + 0x5b9068]
push 0x53f5
add ecx, ebp
call fcn.0043ce10
lea ecx, [esp + 0x14]
call fcn.00401b40
jmp 0x4468da
cmp dword [esi + 0x104], 0
je 0x446361
mov edx, dword [edi*4 + 0x5b9068]
lea ecx, [esp + 0x14]
mov dword [edx + ebp + 0xc0], 0
call fcn.00401b40
jmp 0x4468da
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 0x446386
push 0x80070057
call fcn.00401340
movzx ecx, word [ecx]
cmp cl, 0x2f
je 0x446434
cmp cl, 0x7e
je 0x446434
mov eax, dword [eax]
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.00409bd0
mov eax, dword [edi*4 + 0x5b9068]
lea ecx, [eax + ebp + 0xd8]
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.00402230
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 0x446417
dec eax
push eax
call fcn.004132f0
cmp ax, 0x2f
je 0x446417
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.00406090
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.00402270
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.00540922
add esp, 8
test eax, eax
je 0x44645f
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x446467
mov dword [esp + 0x18], 0x57bc10
cmp dword [esi + 0x108], 0
je 0x4464e0
lea ecx, [esp + 0x28]
call fcn.0044e500
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 bind
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x484], 1
call fcn.0044f040
test eax, eax
je 0x4464cf
push 0
lea ecx, [esp + 0x2c]
call fcn.0044b500
lea ecx, [esp + 0x28]
mov dword [esi + 0xf4], eax
call fcn.0044b4d0
mov dword [esi + 0x110], 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x474], 0
call fcn.0044e540
lea ecx, [esp + 0x1c]
call fcn.00401d10
mov ecx, dword [esi + 0xd0]
mov eax, dword [edi*4 + 0x5b9068]
mov edx, dword [esi + 0x124]
push ecx
mov ecx, dword [eax + ebp + 0x68]
mov eax, dword [esi + 0x108]
inc edx
push edx
mov edx, dword [esp + 0x20]
push ecx
neg eax
sbb eax, eax
push edx
add eax, 0x53f8
push eax
lea ecx, [esp + 0x30]
mov ebx, 2
push ecx
mov byte [esp + 0x48c], bl
call fcn.00402140
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x12c]
add esp, 0x18
push edx
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x11c], 0
mov dword [esi + 0x10c], 1
mov ecx, dword [edi*4 + 0x5b9068]
push 0x445690
add ecx, ebp
call fcn.0043b100
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x120]
test eax, eax
jne 0x446591
mov ecx, dword [edi*4 + 0x5b9068]
mov edx, dword [ecx + ebp + 0xac]
mov dword [esp + 0x20], edx
jmp 0x44659d
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [esp + 0x20], ecx
cmp dword [esi + 0x114], 0
je 0x4465d5
cmp dword [esp + 0x20], 0
je 0x4465d5
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.00445970
add esp, 4
test eax, eax
je 0x4465d5
mov dword [esp + 0x20], 0
cmp dword [esi + 0x108], 0
je 0x446715
cmp dword [0x5ed798], 0
je 0x4466d5
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 0x446612
cmp dword [eax + 0xc], 0
je 0x4466d5
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 + 0x5b9068]
lea edx, [esp + 0x34]
push edx
push eax
add ecx, ebp
call fcn.00444760
test eax, eax
je 0x4466d5
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 0x44666e
mov ecx, dword [eax + 0xc]
cmp ecx, dword [esp + 0x2c]
jne 0x44666e
mov edx, dword [eax + 4]
cmp edx, dword [esp + 0x34]
je 0x4466d5
lea ecx, [esp + 0x24]
call fcn.00401d10
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push 0x5473
push ecx
mov byte [esp + 0x480], 3
call fcn.00402140
mov edx, dword [esp + 0x30]
add esp, 0xc
push 0
push 4
push edx
call fcn.0050c485
lea ecx, [esp + 0x24]
cmp eax, 7
jne 0x4466c9
call fcn.00401b40
lea ecx, [esp + 0x1c]
call fcn.00401b40
lea ecx, [esp + 0x14]
call fcn.00401b40
jmp 0x4468da
mov byte [esp + 0x474], bl
call fcn.00401b40
mov eax, dword [esi + 0x124]
mov ecx, dword [esi + 0xcc]
mov edx, dword [esp + 0x20]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
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 + 0x5b9068]
push eax
add ecx, ebp
call fcn.00445090
jmp 0x44675d
mov eax, dword [esi + 0x124]
mov ecx, dword [esi + 0xcc]
lea edx, [esi + 0x110]
push edx
mov dword [esi + 0x100], ebx
lea edx, [esi + 0xf4]
push edx
mov edx, dword [esp + 0x28]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
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 + 0x5b9068]
push eax
add ecx, ebp
call fcn.00443090
mov ecx, dword [edi*4 + 0x5b9068]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push eax
add ecx, ebp
call fcn.0043b100
cmp dword [esp + 0x18], 0
je 0x44681c
cmp dword [0x5ed798], 0
je 0x4467fd
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 + 0x5b9068]
add ecx, ebp
call fcn.00444760
test eax, eax
jne 0x4467fd
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 [0x5ec7a4]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x446838
cmp dword [esi + 0x104], 0
jne 0x446838
mov ecx, dword [edi*4 + 0x5b9068]
push 0x53f5
add ecx, ebp
call fcn.0043ce10
lea ecx, [esp + 0x1c]
call fcn.00401b40
lea ecx, [esp + 0x14]
call fcn.00401b40
mov eax, dword [esp + 0x18]
jmp 0x4468dc
push 0x5ba3
call fcn.00508953
test eax, eax
je 0x446870
push 0x5ba3
push eax
lea ecx, [esp + 0x1c]
call fcn.00401d70
test ebp, ebp
je 0x4468a5
push 0x5790ec
lea ecx, [esp + 0x18]
call fcn.00402270
mov eax, dword [esi + 0x124]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0xcc]
lea eax, [eax + edx*8 + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401fb0
mov esi, dword [esp + 0x14]
push 0
push 0
push esi
call fcn.0050c485
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 0x4468da
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.0053f73f
add esp, 0x464
ret