Function at 0x420289
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x4586f0
call fcn.004385b8
sub esp, 0x874
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov ebx, ecx
je 0x420300
push 0x46f33c
push edi
call fcn.00437d01
pop ecx
test eax, eax
pop ecx
jne 0x4202c7
push sym.HPZshl01.exe____C__02NNKG__2_2__AA_
push edi
call fcn.00437d01
pop ecx
test eax, eax
pop ecx
je 0x420300
cmp dword [ebx + 0x100], 0
je 0x420300
mov eax, dword [ebx + 0xfc]
push edi
mov eax, dword [eax]
lea esi, [eax + 8]
call fcn.004386d0
pop ecx
push eax
push edi
push dword [esi + 8]
mov ecx, esi
push 0
call fcn.00404100
test eax, eax
jne 0x420300
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 4]
je 0x4208cf
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0xec]
mov dword [ebx + 4], eax
call fcn.004214bf
lea esi, [ebx + 0xf8]
mov ecx, esi
call fcn.004214bf
lea ecx, [ebx + 0xe0]
call fcn.004214bf
lea ecx, [ebx + 0x104]
call fcn.004214bf
lea ecx, [ebx + 0x110]
call fcn.004214bf
cmp dword [ebp + 0x10], 0
je 0x42035f
push dword [ebp + 0x10]
call fcn.004386d0
pop ecx
push eax
lea ecx, [ebx + 0x12c]
push dword [ebp + 0x10]
call fcn.00404770
jmp 0x42037b
mov edi, 0x48840c
push edi
call fcn.004386d0
pop ecx
push eax
push edi
lea ecx, [ebx + 0x12c]
call fcn.00404770
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0xd4]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
cmp ecx, eax
je 0x4203e1
mov eax, dword [ecx + 0x10]
mov edx, 0x45b980
test eax, eax
je 0x420398
mov edx, eax
mov eax, dword [ecx + 0x1c]
add eax, 0x34
mov eax, dword [eax + 4]
test eax, eax
jne 0x4203aa
mov eax, 0x45b980
push edx
push eax
push str.Deleting__s_for_key__s_n
push 0x4788a8
call fcn.0041f7d9
mov eax, dword [ebp - 0x20]
add esp, 0x10
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4203ce
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x20]
call fcn.0041f16e
mov eax, dword [ebx + 0xd4]
mov ecx, dword [ebp - 0x20]
jmp 0x420386
lea ecx, [ebx + 0xd0]
call fcn.004216e2
mov al, byte [ebp + 0xb]
push 0
push 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00404540
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x340]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test edi, edi
je 0x42066d
push 0x46f33c
push edi
call fcn.00437d01
pop ecx
test eax, eax
pop ecx
jne 0x42062a
push sym.HPZshl01.exe____C__02NNKG__2_2__AA_
push edi
call fcn.00437d01
pop ecx
test eax, eax
pop ecx
jne 0x42062a
mov dl, byte [0x48840c]
push 0x40
pop ecx
lea edi, [ebp - 0x137]
mov byte [ebp - 0x138], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x23b]
mov byte [ebp - 0x23c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x23c]
push 0x104
push eax
push 0
call fcn.00427527
add esp, 0xc
lea eax, [ebp - 0x23c]
mov edi, str._s_s
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x138]
push edi
push eax
call fcn.0043714d
lea eax, [ebp - 0x138]
push eax
call fcn.0041d497
add esp, 0x14
test eax, eax
je 0x420516
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00404400
lea eax, [ebp - 0x138]
push eax
call fcn.004386d0
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404770
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
mov eax, dword [eax]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
push eax
call fcn.00404450
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
jmp 0x420620
lea eax, [ebp - 0x23c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x138]
push edi
push eax
call fcn.0043714d
lea eax, [ebp - 0x138]
push eax
call fcn.0041d497
add esp, 0x14
test eax, eax
je 0x4205a3
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00404400
lea eax, [ebp - 0x138]
push eax
call fcn.004386d0
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404770
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
mov eax, dword [eax]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp + 8]
push eax
call fcn.00404450
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
jmp 0x420620
push dword [ebp + 8]
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x138]
push edi
push eax
call fcn.0043714d
lea eax, [ebp - 0x138]
push eax
call fcn.0041d497
add esp, 0x14
test eax, eax
je 0x420741
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00404400
lea eax, [ebp - 0x138]
push eax
call fcn.004386d0
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404770
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
mov eax, dword [eax]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp + 8]
push eax
call fcn.00404450
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00404400
jmp 0x420741
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00404400
push edi
call fcn.004386d0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00404770
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov byte [ebp - 4], 1
call fcn.00404450
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
jmp 0x420620
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x138]
push str._shp_ins__.dat
push eax
call fcn.0043714d
add esp, 0xc
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x420741
test byte [ebp - 0x480], 0x10
jne 0x420724
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x23c]
push str._s_s
push eax
call fcn.0043714d
mov al, byte [ebp + 0xb]
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
push 0
call fcn.00404400
lea eax, [ebp - 0x23c]
push eax
call fcn.004386d0
pop ecx
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404770
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov byte [ebp - 4], 5
call fcn.00404450
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00404400
lea eax, [ebp - 0x480]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4206a7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp + 0xc], 1
je 0x4208c3
mov al, byte [0x48840c]
mov ecx, 0xff
mov byte [ebp - 0x880], al
xor eax, eax
lea edi, [ebp - 0x87f]
mov esi, str.___t_n
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 0xfc]
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [eax]
cmp esi, dword [ebx + 0xfc]
je 0x420899
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x420792
mov eax, 0x45b980
push 0x800
lea ecx, [ebp - 0x880]
push 0x400
push ecx
push str.InfrastructureDatabaseList
push str.Version
push eax
call fcn.00426de3
add esp, 0x18
test eax, eax
je 0x420892
mov al, byte [0x48840c]
push 0x40
mov byte [ebp - 0x23c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x23b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4207e5
mov eax, 0x45b980
lea ecx, [ebp - 0x23c]
push 0x104
push ecx
push eax
call fcn.004270a5
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x880]
push eax
call fcn.00437345
add esp, 0x14
test eax, eax
je 0x420892
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x138]
push str._s_s
push eax
call fcn.0043714d
mov al, byte [ebp + 0xb]
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
push 0
call fcn.00404400
lea eax, [ebp - 0x138]
push eax
call fcn.004386d0
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404770
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push eax
lea eax, [ebp + 8]
push dword [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
call fcn.00404450
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00404400
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.00437345
pop ecx
pop ecx
jmp 0x42080a
mov esi, dword [esi]
jmp 0x42077a
lea ecx, [ebp - 0x2c]
call fcn.004214e6
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
cmp esi, dword [ebp - 0x28]
je 0x4208c3
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4208b7
mov eax, 0x45b980
push eax
mov ecx, ebx
call sym.HPZshl01.exe_private:_unsigned_int___thiscall_CFactory::LoadModelFile_char_const__const
mov esi, dword [esi]
jmp 0x4208a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403a80
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc