Function at 0x4474ff
Capabilities:
Check if file exists

Disassembly:
push 0x60c
mov eax, 0x56810b
call fcn.00539a7a
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x574], edi
cmp dword [edi + 8], eax
jne 0x447e33
mov ebx, 0x206
push ebx
push eax
mov dword [ebp - 0x55c], eax
mov dword [ebp - 0x564], eax
lea eax, [ebp - 0x28e]
xor ecx, ecx
push eax
mov dword [edi + 8], 1
mov word [ebp - 0x290], cx
call fcn.00537010
add esp, 0xc
push str.topmost.dat
call fcn.00412e3d
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
lea eax, [ebp - 0x290]
push eax
call esi
xor eax, eax
push ebx
mov word [ebp - 0x498], ax
xor ebx, ebx
lea eax, [ebp - 0x496]
push ebx
push eax
call fcn.00537010
add esp, 0xc
push str.topmost.dat.bak
call fcn.00412e3d
push eax
lea eax, [ebp - 0x498]
push eax
call esi
call fcn.0042a15a
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x55c]
push eax
mov esi, 0xba
push esi
lea eax, [ebp - 0x290]
push eax
call fcn.0042a26b
test eax, eax
jne 0x44760a
lea eax, [ebp - 0x498]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4475ea
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0x290]
call fcn.00496ba5
pop ecx
call fcn.0042a15a
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x55c]
push eax
push esi
lea eax, [ebp - 0x290]
push eax
call fcn.0042a26b
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x55c], ebx
je 0x447688
cmp dword [ebp - 0x564], ebx
je 0x447688
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x498]
call fcn.00496ba5
pop ecx
lea eax, [ebp - 0x558]
push eax
call fcn.004b72b9
mov byte [ebp - 4], 1
push dword [ebp - 0x55c]
lea ecx, [ebp - 0x34]
call fcn.0040319e
lea eax, [edi + 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
lea ebx, [ebp - 0x558]
mov byte [ebp - 4], 2
call fcn.004b7302
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00403211
push dword [ebp - 0x55c]
call fcn.00530cbd
pop ecx
mov eax, ebx
mov byte [ebp - 4], 0
call fcn.0042d722
cmp byte [edi + 0x70], 0
je 0x44769a
lea eax, [edi + 0x68]
call fcn.004b64c5
test al, al
jne 0x4476c6
lea eax, [ebp - 0x5b0]
push eax
push 7
pop ebx
call fcn.004b576b
push eax
lea esi, [edi + 0x68]
mov byte [ebp - 4], 3
call fcn.004b5a89
lea eax, [ebp - 0x5b0]
push eax
mov byte [ebp - 4], 0
call fcn.004b59f1
cmp byte [edi + 0x20], 0
je 0x4476da
lea esi, [edi + 0x18]
mov eax, esi
call fcn.004b64c5
test al, al
jne 0x447706
lea eax, [ebp - 0x5b0]
push eax
push 7
pop ebx
call fcn.004b576b
lea esi, [edi + 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.004b5a89
lea eax, [ebp - 0x5b0]
push eax
mov byte [ebp - 4], 0
call fcn.004b59f1
mov edx, str.main
mov ecx, esi
call fcn.004b61b1
mov esi, eax
cmp byte [esi + 8], 0
mov dword [ebp - 0x568], esi
je 0x447729
call fcn.004b64c5
test al, al
jne 0x447752
lea eax, [ebp - 0x5b0]
push eax
push 7
pop ebx
call fcn.004b576b
push eax
mov byte [ebp - 4], 5
call fcn.004b5a89
lea eax, [ebp - 0x5b0]
push eax
mov byte [ebp - 4], 0
call fcn.004b59f1
mov edx, 0x583914
mov ecx, esi
call fcn.004b61b1
mov esi, eax
cmp byte [esi + 8], 1
jne 0x447771
mov ecx, esi
call fcn.004b5ba6
test eax, eax
jg 0x447794
push 1
lea edi, [ebp - 0x5b0]
call fcn.004b57ec
push eax
mov byte [ebp - 4], 6
call fcn.004b5a89
mov eax, edi
push eax
mov byte [ebp - 4], 0
call fcn.004b59f1
xor eax, eax
mov word [ebp - 0x5e0], ax
lea edi, [ebp - 0x5de]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x5e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x3f
xor edi, edi
lea eax, [ebp - 0x87]
push edi
push eax
mov byte [ebp - 0x88], 0
call fcn.00537010
movzx eax, word [ebp - 0x5da]
add esp, 0xc
push eax
movzx eax, word [ebp - 0x5de]
push eax
movzx eax, word [ebp - 0x5e0]
push eax
push str._04d_02d_02d
lea eax, [ebp - 0x88]
push 0x40
push eax
call fcn.00534db7
mov ecx, dword [ebp - 0x568]
add esp, 0x18
mov edx, str.date
mov dword [ebp - 0x564], edi
call fcn.004b61b1
mov esi, eax
cmp byte [esi + 8], 4
jne 0x447841
mov eax, dword [esi]
cmp eax, edi
je 0x447841
lea ecx, [ebp - 0x88]
push ecx
push eax
call fcn.00535acd
pop ecx
pop ecx
test eax, eax
jne 0x447841
mov dword [ebp - 0x564], 1
jmp 0x44786e
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.004b5826
push eax
mov byte [ebp - 4], 7
call fcn.004b5a89
lea eax, [ebp - 0x5b0]
push eax
mov byte [ebp - 4], 0
call fcn.004b59f1
mov ecx, dword [ebp - 0x568]
mov edx, 0x583930
call fcn.004b61b1
mov esi, eax
cmp byte [esi + 8], 1
je 0x447898
push edi
lea edi, [ebp - 0x5b0]
call fcn.004b57ec
mov byte [ebp - 4], 8
jmp 0x4478b8
cmp dword [ebp - 0x564], edi
jne 0x4478ce
mov ecx, esi
call fcn.004b5ba6
inc eax
push eax
lea edi, [ebp - 0x5b0]
call fcn.004b57ec
mov byte [ebp - 4], 9
push eax
call fcn.004b5a89
lea eax, [ebp - 0x5b0]
push eax
mov byte [ebp - 4], 0
call fcn.004b59f1
mov ecx, esi
call fcn.004b5ba6
push 0x1f
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp - 0x568]
mov dword [ebp - 0x570], edx
mov edx, str.order
call fcn.004b61b1
mov esi, eax
cmp byte [esi + 8], 0
mov dword [ebp - 0x56c], esi
je 0x447908
call fcn.004b64b3
test al, al
jne 0x447931
lea eax, [ebp - 0x5b0]
push eax
push 6
pop ebx
call fcn.004b576b
push eax
mov byte [ebp - 4], 0xa
call fcn.004b5a89
lea eax, [ebp - 0x5b0]
push eax
mov byte [ebp - 4], 0
call fcn.004b59f1
lea eax, [ebp - 0x4c8]
push eax
xor ebx, ebx
call fcn.004b576b
xor edi, edi
push edi
push 1
mov byte [ebp - 4], 0xb
call fcn.00406a55
pop ecx
pop ecx
cmp eax, edi
je 0x44795d
lea ecx, [ebp - 0x5d0]
mov dword [eax], ecx
jmp 0x44795f
xor eax, eax
mov dword [ebp - 0x5d0], eax
mov byte [ebp - 4], 0xc
call fcn.004ad87d
mov dword [ebp - 0x5b8], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebp - 0x5b8]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x5b8]
mov dword [eax], eax
mov eax, dword [ebp - 0x5b8]
mov dword [eax + 8], eax
mov dword [ebp - 0x5b4], edi
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x55c], edi
mov eax, esi
call fcn.004b5f32
cmp dword [ebp - 0x55c], eax
jae 0x447a81
push dword [ebp - 0x55c]
mov ecx, esi
call fcn.004b5f82
cmp byte [eax + 8], 1
jne 0x447a76
push dword [ebp - 0x55c]
mov ecx, esi
call fcn.004b5f82
mov ecx, eax
call fcn.004b5ba6
mov dword [ebp - 0x560], eax
cmp eax, 0xc
jae 0x447a76
mov eax, dword [ebp - 0x5b8]
mov dword [ebp - 0x578], eax
mov eax, dword [ebp - 0x5d0]
mov dword [ebp - 0x57c], eax
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x5e8]
push eax
lea ebx, [ebp - 0x5d0]
call fcn.00449bcc
lea edi, [ebp - 0x57c]
mov esi, eax
call fcn.00470a9c
test al, al
je 0x447a70
lea eax, [ebp - 0x560]
push eax
call fcn.00449b45
push dword [ebp - 0x560]
lea edi, [ebp - 0x48]
mov dword [eax], 1
call fcn.004b57ec
mov eax, edi
push eax
lea eax, [ebp - 0x4c8]
push eax
mov byte [ebp - 4], 0xe
call fcn.004b63ca
mov eax, edi
push eax
mov byte [ebp - 4], 0xd
call fcn.004b59f1
mov esi, dword [ebp - 0x56c]
inc dword [ebp - 0x55c]
jmp 0x4479a2
and dword [ebp - 0x55c], 0
mov eax, dword [ebp - 0x55c]
cmp eax, 0xc
jae 0x447b34
mov dword [ebp - 0x560], eax
mov eax, dword [ebp - 0x5b8]
mov dword [ebp - 0x578], eax
mov eax, dword [ebp - 0x5d0]
mov dword [ebp - 0x57c], eax
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x5e8]
push eax
lea ebx, [ebp - 0x5d0]
call fcn.00449bcc
lea edi, [ebp - 0x57c]
mov esi, eax
call fcn.00470a9c
test al, al
je 0x447b23
mov eax, dword [ebp - 0x40]
and dword [ebp - 0x3c], 0
and eax, 0xffffff02
or eax, 2
lea esi, [ebp - 0x38]
mov dword [ebp - 0x40], eax
call fcn.004031c3
mov eax, dword [ebp - 0x55c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c8]
push eax
mov byte [ebp - 4], 0xf
call fcn.004b63ca
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xd
call fcn.004b59f1
inc dword [ebp - 0x55c]
mov esi, dword [ebp - 0x56c]
jmp 0x447a88
lea eax, [ebp - 0x4c8]
push eax
call fcn.004b5a89
mov ecx, dword [ebp - 0x568]
mov edx, str.visit
call fcn.004b61b1
mov esi, eax
cmp byte [esi + 8], 0
mov dword [ebp - 0x560], esi
je 0x447b67
call fcn.004b64b3
test al, al
jne 0x447b90
lea eax, [ebp - 0x5b0]
push eax
push 6
pop ebx
call fcn.004b576b
push eax
mov byte [ebp - 4], 0x10
call fcn.004b5a89
lea eax, [ebp - 0x5b0]
push eax
mov byte [ebp - 4], 0xd
call fcn.004b59f1
xor ebx, ebx
cmp ebx, 0x1f
jae 0x447be1
push ebx
mov ecx, esi
call fcn.004b5f82
cmp byte [eax + 8], 1
je 0x447bde
push 0x7fffffff
lea edi, [ebp - 0x48]
call fcn.004b57ec
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x560]
push ebx
call fcn.004b5f82
mov ecx, edi
push ecx
mov esi, eax
call fcn.004b5a89
mov eax, edi
push eax
mov byte [ebp - 4], 0xd
call fcn.004b59f1
mov esi, dword [ebp - 0x560]
inc ebx
jmp 0x447b92
cmp dword [ebp - 0x564], 0
jne 0x447c29
push 0x7ffff000
lea edi, [ebp - 0x5b0]
call fcn.004b57ec
mov edi, eax
push dword [ebp - 0x570]
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x560]
call fcn.004b5f82
push edi
mov esi, eax
call fcn.004b5a89
lea eax, [ebp - 0x5b0]
push eax
mov byte [ebp - 4], 0xd
call fcn.004b59f1
mov edi, dword [ebp - 0x574]
lea ecx, [edi + 0x18]
mov edx, str.items
call fcn.004b61b1
mov esi, eax
cmp byte [esi + 8], 0
mov dword [ebp - 0x570], esi
je 0x447c53
call fcn.004b64c5
test al, al
jne 0x447c7c
lea eax, [ebp - 0x5b0]
push eax
push 7
pop ebx
call fcn.004b576b
push eax
mov byte [ebp - 4], 0x13
call fcn.004b5a89
lea eax, [ebp - 0x5b0]
push eax
mov byte [ebp - 4], 0xd
call fcn.004b59f1
and dword [ebp - 0x55c], 0
xor eax, eax
cmp dword [ebp - 0x55c], 0xc
jae 0x447de0
push dword [ebp - 0x55c]
mov byte [ebp - 0x2c], al
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.id_d
stosb byte es:[edi], al
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.00534db7
mov ecx, dword [ebp - 0x570]
add esp, 0x10
lea edx, [ebp - 0x2c]
call fcn.004b61b1
mov edi, eax
cmp byte [edi + 8], 0
je 0x447cdb
call fcn.004b64c5
test al, al
jne 0x447dcf
lea eax, [ebp - 0x5b0]
push eax
push 7
pop ebx
call fcn.004b576b
push eax
mov esi, edi
mov byte [ebp - 4], 0x14
call fcn.004b5a89
lea eax, [ebp - 0x5b0]
push eax
mov byte [ebp - 4], 0xd
call fcn.004b59f1
mov edx, 0x57fb34
mov ecx, edi
call fcn.004b61b1
mov ebx, dword [ebp - 0x55c]
shl ebx, 3
push dword [ebx + 0x5b6c38]
mov esi, eax
lea eax, [ebp - 0x56c]
push eax
call fcn.004a3b97
pop ecx
pop ecx
mov byte [ebp - 4], 0x15
push dword [eax]
lea eax, [ebp - 0x5b0]
push eax
call fcn.004b5826
push eax
mov byte [ebp - 4], 0x16
call fcn.004b5a89
lea eax, [ebp - 0x5b0]
push eax
mov byte [ebp - 4], 0x15
call fcn.004b59f1
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x56c]
add eax, 0xfffffff0
call fcn.00407d09
mov edx, 0x57d550
mov ecx, edi
call fcn.004b61b1
push dword [ebx + 0x5b6c3c]
mov esi, eax
lea eax, [ebp - 0x560]
push eax
call fcn.004a3b97
pop ecx
pop ecx
mov byte [ebp - 4], 0x17
push dword [eax]
lea eax, [ebp - 0x618]
push eax
call fcn.004b5826
push eax
mov byte [ebp - 4], 0x18
call fcn.004b5a89
lea eax, [ebp - 0x618]
push eax
mov byte [ebp - 4], 0x17
call fcn.004b59f1
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x560]
add eax, 0xfffffff0
call fcn.00407d09
inc dword [ebp - 0x55c]
mov edi, dword [ebp - 0x574]
jmp 0x447c83
inc eax
cmp dword [ebp - 0x564], 0
mov dword [edi + 0xc], eax
jne 0x447df0
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x5d0]
push eax
mov byte [ebp - 4], 0xb
call fcn.004ad595
lea eax, [ebp - 0x4c8]
push eax
mov byte [ebp - 4], 0
call fcn.004b59f1
or dword [ebp - 4], 0xffffffff
jmp 0x447e26
cmp dword [edi + 0xc], 0
je 0x447e33
mov ecx, edi
call fcn.00449580
call fcn.00539ad6
ret