Function at 0x446220
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4febdb
mov eax, dword fs:[0]
push eax
sub esp, 0xedc
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0xed8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52e144]
xor eax, esp
push eax
lea eax, [esp + 0xef0]
mov dword fs:[0], eax
mov esi, dword [esp + 0xf08]
mov edi, dword [esp + 0xf04]
xor ebp, ebp
mov dword [esp + 0x18], edi
mov byte [0x53c053], 0
test esi, esi
je 0x4462c1
push 0x103
lea eax, [esp + 0x5ed]
push ebp
push eax
mov byte [esp + 0x5f4], 0
call fcn.004b6dc0
push esi
call fcn.00488e40
add esp, 0x10
lea edx, [esp + 0x5e8]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x4462a5
lea ecx, [esp + 0x5e8]
push ecx
call fcn.00404330
add esp, 4
mov ebp, eax
push 0
push 0
push edi
call 0x52ced9
mov ebx, eax
and eax, 1
jne 0x4462e8
cmp dword [esp + 0xf0c], eax
je 0x44636e
test bl, 0x10
je 0x44636e
cmp dword [0x537f30], 0
je 0x446316
mov ecx, dword [0x5385f8]
test ecx, ecx
je 0x446316
test eax, eax
jne 0x446316
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x1c], eax
call ecx
cmp dword [esp + 0x14], 0
je 0x446b52
test ebp, ebp
je 0x44636e
push esi
push 0x51c604
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
cmp ebp, 0xebcc407a
je 0x44636e
cmp ebp, 0x43b777c4
je 0x44636e
cmp ebp, 0x7a0d84aa
je 0x44636e
cmp ebp, 0x490c639b
je 0x44636e
mov eax, dword [esp + 0xf00]
push eax
call fcn.00491be0
add esp, 4
test al, al
jne 0x446b52
lea ecx, [esp + 0x1c]
call fcn.00409050
mov dword [esp + 0xef8], 0
test esi, esi
je 0x446405
cmp dword [0x537d30], 0
jne 0x446405
push 0x400
lea ecx, [esp + 0x6f0]
push esi
push ecx
call fcn.004b8a4f
push 0x51c5fc
mov byte [esp + 0xafb], 0
call fcn.00404690
push 3
push eax
lea edx, [esp + 0x704]
push edx
call fcn.004b9e25
add esp, 0x1c
test eax, eax
jne 0x446458
lea eax, [esp + 0x6ec]
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.00408d20
test eax, eax
jne 0x446458
mov edx, dword [esp + 0xf00]
push eax
lea ecx, [esp + 0x6f0]
push ecx
push edx
push edi
call fcn.0043fd60
add esp, 0x10
test eax, eax
je 0x446458
jmp 0x446450
mov esi, dword [esp + 0xf00]
push 0
lea eax, [esp + 0x6f0]
push eax
push esi
push edi
call fcn.0043fd60
add esp, 0x10
test eax, eax
je 0x446458
lea ecx, [esp + 0x6ec]
push ecx
push esi
lea ecx, [esp + 0x24]
call fcn.00408840
test eax, eax
jne 0x446458
lea edx, [esp + 0x6ec]
push edx
push edi
lea ecx, [esp + 0x24]
call fcn.00408d20
test eax, eax
jne 0x446458
mov byte [esp + 0x6ec], 0
test bl, 2
je 0x44646d
cmp dword [0x537d38], 0x1f53
jne 0x446b3e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x6ec]
push eax
call esi
cmp eax, 0xffffffff
jne 0x44651e
mov ebx, dword [esp + 0xf00]
push 0
lea ecx, [esp + 0x6f0]
push ecx
push ebx
push edi
call fcn.0043fd60
add esp, 0x10
test eax, eax
jne 0x44651e
lea edx, [esp + 0x6ec]
push edx
call esi
cmp eax, 0xffffffff
jne 0x44651e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
je 0x4464d8
cmp eax, 3
jne 0x44651e
cmp byte [esp + 0x6ec], 0x5c
je 0x44651e
cmp byte [esp + 0x6ed], 0x3a
jne 0x44651e
mov edx, dword [0x538370]
lea ecx, [esp + 0x6ec]
push ecx
push edx
push eax
push 0x51c5d8
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x14
cmp dword [0x538370], 0
jne 0x446b3e
push ebx
call fcn.00491be0
add esp, 4
jmp 0x446b3e
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push closesocket
lea eax, [esp + 0x704]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x446556
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x537f30], 0
je 0x446573
cmp dword [esp + 0xf0c], 0
jne 0x446573
cmp dword [esp + 0xf10], 0
je 0x4465a1
push edi
mov edi, dword [esp + 0xf04]
lea ecx, [esp + 0x6f0]
push ecx
push edi
push 0x51c5b4
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x14
jmp 0x4465a8
mov edi, dword [esp + 0xf00]
lea edx, [esp + 0x6ec]
push edx
call fcn.004ba189
add esp, 4
cmp ebp, 0x3689697d
je 0x446608
cmp ebp, 0x59ccca06
je 0x446608
cmp ebp, 0xd175c02e
je 0x446608
cmp ebp, 0x914ce10c
je 0x446608
cmp ebp, 0x9fc40471
je 0x446608
cmp ebp, 0x16702482
je 0x446608
cmp ebp, 0x2dc50010
je 0x446608
cmp ebp, 0xc111b32c
je 0x446608
cmp ebp, 0xfe51a883
je 0x446608
cmp ebp, 0x56512f19
jne 0x44660f
mov byte [0x53c053], 1
lea eax, [esp + 0x6ec]
push eax
call fcn.00443fd0
add esp, 4
test al, al
je 0x446662
lea ecx, [esp + 0x6ec]
push ecx
push edi
push 0x51c5a0
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
lea ecx, [esp + 0x1c]
mov dword [esp + 0xef8], 0xffffffff
call fcn.004085c0
mov al, 1
jmp 0x446b54
cmp dword [0x5383bc], 1
mov ebx, 0x4e70
jne 0x446749
push 1
push edi
lea ecx, [esp + 0x24]
call fcn.00409690
test eax, eax
je 0x446749
jmp 0x446690
lea edx, [esp + 0x138]
push edx
call fcn.004ba189
push 0x51c590
call fcn.00404690
push eax
lea eax, [esp + 0x144]
push eax
call fcn.004b9929
add esp, 0x10
test eax, eax
jne 0x446737
push edi
mov esi, 0x60000000
call fcn.0040a880
add esp, 4
test eax, eax
je 0x4466d3
mov esi, 0x70000000
cmp dword [0x54a138], ebx
jne 0x4466e0
mov esi, 0x70000000
cmp dword [esp + 0x240], esi
ja 0x446737
push 0x51c580
call fcn.00404690
push eax
lea ecx, [esp + 0x140]
push ecx
call fcn.004b9929
add esp, 0xc
test eax, eax
je 0x446737
push 0x400
lea edx, [esp + 0x6f0]
push edx
push 0x52af98
call fcn.004b8a4f
push 0x51c574
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0x18
push edi
lea ecx, [esp + 0x20]
call fcn.00409840
test eax, eax
jne 0x446690
push 1
push edi
lea ecx, [esp + 0x24]
call fcn.00409690
test eax, eax
je 0x4467e1
mov ebp, dword [esp + 0x18]
push edi
mov esi, 0x60000000
call fcn.0040a880
add esp, 4
test eax, eax
je 0x446778
mov esi, 0x70000000
cmp dword [0x54a138], ebx
jne 0x446785
mov esi, 0x70000000
mov eax, dword [esp + 0x240]
cmp eax, esi
jbe 0x4467a7
cmp byte [0x54a134], 0
jne 0x4467d3
cmp eax, 0x80000000
jb 0x4467d3
cmp eax, 0xb0000000
jae 0x4467d3
lea eax, [esp + 0x138]
push eax
call fcn.004ba189
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x6f4]
push edx
push ebp
push edi
call fcn.00440f60
add esp, 0x14
test al, al
jne 0x446647
push edi
lea ecx, [esp + 0x20]
call fcn.00409840
test eax, eax
jne 0x446761
mov eax, dword [esp + 0xf10]
mov ecx, dword [esp + 0xf0c]
push eax
push ecx
lea edx, [esp + 0x6f4]
push edx
push edi
call fcn.00444fd0
add esp, 0x10
test al, al
jne 0x446647
push 0x51c560
call fcn.00404690
push eax
lea eax, [esp + 0x6f4]
push eax
call fcn.004b9929
add esp, 0xc
test eax, eax
je 0x446a42
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [esp + 0x5ec]
push ecx
call ebx
push 0x51c544
call fcn.00404690
add esp, 4
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x446851
lea edi, [esp + 0x5e8]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x446864
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x5e8]
and ecx, 3
push 0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004ba516
add esp, 8
cmp eax, 0xffffffff
je 0x44693b
push 0x1ff
lea eax, [esp + 0xaf1]
push 0
push eax
mov byte [esp + 0xaf8], 0
call fcn.004b6dc0
mov ebp, dword [esp + 0xf0c]
add esp, 0xc
lea ecx, [esp + 0x6ec]
push ecx
push ebp
push 0x51c534
call fcn.00404690
add esp, 4
push eax
lea edx, [esp + 0xaf8]
push edx
call fcn.004b79a8
lea eax, [esp + 0xafc]
push eax
push 0x527e20
call fcn.00401350
mov ecx, dword [0x527d88]
add esp, 0x18
push 0
push 0
push ecx
push 0x50d930
call fcn.00404690
add esp, 4
push eax
lea edx, [esp + 0xafc]
push edx
push 0x51b26c
push 0
push 0xb7928c
push 2
push 2
call fcn.0043c0b0
add esp, 0x28
cmp dword [0x537d78], 0
jne 0x446942
jmp 0x446647
mov ebp, dword [esp + 0xf00]
push 0x104
lea eax, [esp + 0x5ec]
push eax
call ebx
push 0x51c518
call fcn.00404690
add esp, 4
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x446960
lea edi, [esp + 0x5e8]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x446973
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x5e8]
push 0
push ecx
call fcn.004ba516
add esp, 8
cmp eax, 0xffffffff
je 0x446a49
push 0x1ff
lea edx, [esp + 0xaf1]
push 0
push edx
mov byte [esp + 0xaf8], 0
call fcn.004b6dc0
add esp, 0xc
lea eax, [esp + 0x6ec]
push eax
push ebp
push 0x51c534
call fcn.00404690
add esp, 4
push eax
lea ecx, [esp + 0xaf8]
push ecx
call fcn.004b79a8
lea edx, [esp + 0xafc]
push edx
push 0x527e20
call fcn.00401350
mov eax, dword [0x527d88]
add esp, 0x18
push 0
push 0
push eax
push 0x50d930
call fcn.00404690
add esp, 4
push eax
lea ecx, [esp + 0xafc]
push ecx
push 0x51b26c
push 0
push 0xb7928d
push 2
push 2
call fcn.0043c0b0
add esp, 0x28
cmp dword [0x537d78], 0
jne 0x446a49
jmp 0x446647
mov ebp, dword [esp + 0xf00]
cmp dword [0x539710], 0x29
jne 0x446b17
push 0x51c50c
call fcn.00404690
push eax
lea edx, [esp + 0x6f4]
push edx
call fcn.004b9929
add esp, 0xc
test eax, eax
je 0x446b17
push 0x1ff
lea eax, [esp + 0xcf1]
push 0
push eax
mov byte [esp + 0xcf8], 0
call fcn.004b6dc0
add esp, 0xc
lea ecx, [esp + 0x6ec]
push ecx
push ebp
push 0x51c4e8
call fcn.00404690
add esp, 4
push eax
lea edx, [esp + 0xcf8]
push edx
call fcn.004b79a8
lea eax, [esp + 0xcfc]
push eax
push 0x527e20
call fcn.00401350
mov ecx, dword [0x527d88]
add esp, 0x18
push 0
push 0
push ecx
push 0x50d930
call fcn.00404690
add esp, 4
push eax
lea edx, [esp + 0xcfc]
push edx
push 0x51b26c
push 0
push 0xb7928e
push 2
push 2
call fcn.0043c0b0
add esp, 0x28
cmp dword [0x537d78], 0
je 0x446647
lea eax, [esp + 0x6ec]
push eax
push ebp
call fcn.0043e4b0
lea ecx, [esp + 0x6f4]
push ecx
push ebp
call fcn.00443210
add esp, 0x10
test al, al
jne 0x446647
lea ecx, [esp + 0x1c]
mov dword [esp + 0xef8], 0xffffffff
call fcn.004085c0
xor al, al
mov ecx, dword [esp + 0xef0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xed8]
xor ecx, esp
call fcn.004b6da3
add esp, 0xee8
ret