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

Disassembly:
mov eax, 0x430194
call fcn.004083b8
sub esp, 0x874
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov ebx, ecx
je 0x4143a3
push 0x441770
push edi
call fcn.00409e63
pop ecx
test eax, eax
pop ecx
jne 0x41436a
push sym.HPZwis01.exe____C__02NNKG__2_2__AA_
push edi
call fcn.00409e63
pop ecx
test eax, eax
pop ecx
je 0x4143a3
cmp dword [ebx + 0x100], 0
je 0x4143a3
mov eax, dword [ebx + 0xfc]
push edi
mov eax, dword [eax]
lea esi, [eax + 8]
call fcn.00409f30
pop ecx
push eax
push edi
push dword [esi + 8]
mov ecx, esi
push 0
call fcn.00403060
test eax, eax
jne 0x4143a3
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 4]
je 0x414972
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0xec]
mov dword [ebx + 4], eax
call fcn.0041566b
lea esi, [ebx + 0xf8]
mov ecx, esi
call fcn.0041566b
lea ecx, [ebx + 0xe0]
call fcn.0041566b
lea ecx, [ebx + 0x104]
call fcn.0041566b
lea ecx, [ebx + 0x110]
call fcn.0041566b
cmp dword [ebp + 0x10], 0
je 0x414402
push dword [ebp + 0x10]
call fcn.00409f30
pop ecx
push eax
lea ecx, [ebx + 0x12c]
push dword [ebp + 0x10]
call fcn.00403650
jmp 0x41441e
mov edi, 0x4541f8
push edi
call fcn.00409f30
pop ecx
push eax
push edi
lea ecx, [ebx + 0x12c]
call fcn.00403650
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0xd4]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
cmp ecx, eax
je 0x414484
mov eax, dword [ecx + 0x10]
mov edx, 0x43257c
test eax, eax
je 0x41443b
mov edx, eax
mov eax, dword [ecx + 0x1c]
add eax, 0x34
mov eax, dword [eax + 4]
test eax, eax
jne 0x41444d
mov eax, 0x43257c
push edx
push eax
push str.Deleting__s_for_key__s_n
push 0x444698
call fcn.0041309c
mov eax, dword [ebp - 0x20]
add esp, 0x10
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x414471
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x20]
call fcn.00415a4d
mov eax, dword [ebx + 0xd4]
mov ecx, dword [ebp - 0x20]
jmp 0x414429
lea ecx, [ebx + 0xd0]
call fcn.00415905
mov al, byte [ebp + 0xb]
push 0
push 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00403410
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 0x414710
push 0x441770
push edi
call fcn.00409e63
pop ecx
test eax, eax
pop ecx
jne 0x4146cd
push sym.HPZwis01.exe____C__02NNKG__2_2__AA_
push edi
call fcn.00409e63
pop ecx
test eax, eax
pop ecx
jne 0x4146cd
mov dl, byte [0x4541f8]
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.0041e361
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.00407725
lea eax, [ebp - 0x138]
push eax
call fcn.00414986
add esp, 0x14
test eax, eax
je 0x4145b9
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00403360
lea eax, [ebp - 0x138]
push eax
call fcn.00409f30
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403650
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.004033b0
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
jmp 0x4146c3
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.00407725
lea eax, [ebp - 0x138]
push eax
call fcn.00414986
add esp, 0x14
test eax, eax
je 0x414646
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00403360
lea eax, [ebp - 0x138]
push eax
call fcn.00409f30
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403650
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.004033b0
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
jmp 0x4146c3
push dword [ebp + 8]
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x138]
push edi
push eax
call fcn.00407725
lea eax, [ebp - 0x138]
push eax
call fcn.00414986
add esp, 0x14
test eax, eax
je 0x4147e4
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00403360
lea eax, [ebp - 0x138]
push eax
call fcn.00409f30
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403650
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.004033b0
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403360
jmp 0x4147e4
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00403360
push edi
call fcn.00409f30
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00403650
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.004033b0
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
jmp 0x4146c3
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x138]
push str._shp_ins__.dat
push eax
call fcn.00407725
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 0x4147e4
test byte [ebp - 0x480], 0x10
jne 0x4147c7
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x23c]
push str._s_s
push eax
call fcn.00407725
mov al, byte [ebp + 0xb]
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
push 0
call fcn.00403360
lea eax, [ebp - 0x23c]
push eax
call fcn.00409f30
pop ecx
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403650
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.004033b0
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403360
lea eax, [ebp - 0x480]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41474a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp + 0xc], 1
je 0x414966
mov al, byte [0x4541f8]
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 0x41493c
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x414835
mov eax, 0x43257c
push 0x800
lea ecx, [ebp - 0x880]
push 0x400
push ecx
push str.InfrastructureDatabaseList
push str.Version
push eax
call fcn.0041dce8
add esp, 0x18
test eax, eax
je 0x414935
mov al, byte [0x4541f8]
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 0x414888
mov eax, 0x43257c
lea ecx, [ebp - 0x23c]
push 0x104
push ecx
push eax
call fcn.0041e1ef
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x880]
push eax
call fcn.004078e9
add esp, 0x14
test eax, eax
je 0x414935
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x138]
push str._s_s
push eax
call fcn.00407725
mov al, byte [ebp + 0xb]
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
push 0
call fcn.00403360
lea eax, [ebp - 0x138]
push eax
call fcn.00409f30
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403650
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.004033b0
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403360
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.004078e9
pop ecx
pop ecx
jmp 0x4148ad
mov esi, dword [esi]
jmp 0x41481d
lea ecx, [ebp - 0x2c]
call fcn.00415692
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
cmp esi, dword [ebp - 0x28]
je 0x414966
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x41495a
mov eax, 0x43257c
push eax
mov ecx, ebx
call sym.HPZwis01.exe_private:_unsigned_int___thiscall_CFactory::LoadModelFile_char_const__const
mov esi, dword [esi]
jmp 0x414949
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402a70
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc