Function at 0x4168a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x420137
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5e4
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x604]
mov dword [esp + 0x40], ecx
xor esi, esi
push str.DatabasePath
mov ecx, edi
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.0041c830
cmp eax, esi
je 0x4168fb
mov ebp, dword [eax + 0x24]
push str.RelativeFilename
mov ecx, edi
call fcn.0041c830
cmp eax, esi
je 0x41690e
mov ebx, dword [eax + 0x24]
cmp ebp, esi
jne 0x41691a
cmp ebx, esi
je 0x416ee5
push str.Description
mov ecx, edi
call fcn.0041c830
cmp eax, esi
je 0x416931
mov eax, dword [eax + 0x24]
mov dword [esp + 0x24], eax
push str.Author
mov ecx, edi
call fcn.0041c830
cmp eax, esi
je 0x416948
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x20], ecx
push str.Notes
mov ecx, edi
call fcn.0041c830
cmp eax, esi
je 0x41695f
mov edx, dword [eax + 0x24]
mov dword [esp + 0x18], edx
push str.Keywords
mov ecx, edi
call fcn.0041c830
cmp eax, esi
je 0x416976
mov eax, dword [eax + 0x24]
mov dword [esp + 0x1c], eax
push str.Date
mov ecx, edi
call fcn.0041c830
cmp eax, esi
je 0x41699a
mov eax, dword [eax + 0x24]
push eax
call fcn.00417690
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2e9]
mov byte [esp + 0x2e8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3ed]
mov byte [esp + 0x3ec], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1e5]
mov byte [esp + 0x1e4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xe1]
mov byte [esp + 0xe0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp ebp, esi
stosb byte es:[edi], al
je 0x416a72
push ebp
call fcn.00419910
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2ec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xe4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0xe4]
push ecx
call fcn.00419910
add esp, 8
mov byte [eax - 1], 0
xor esi, esi
cmp ebx, esi
je 0x416ac8
mov edx, dword [esp + 0x608]
push ebx
lea eax, [esp + 0x3f0]
push edx
push eax
call fcn.00417890
lea ecx, [esp + 0x1f0]
lea edx, [esp + 0x3f8]
push ecx
push edx
call fcn.00419420
add esp, 0x14
cmp ebp, esi
jne 0x416ac8
lea eax, [esp + 0x3ec]
lea ecx, [esp + 0x2e8]
push eax
lea edx, [esp + 0xe4]
push ecx
push edx
call fcn.00417900
add esp, 0xc
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
xor edi, edi
mov ebx, 1
cmp esi, edi
mov dword [esp + 0x5fc], edi
je 0x416b1a
lea eax, [esp + 0xe0]
mov dword [esi + 4], edi
push eax
mov dword [esi + 8], ebx
call fcn.0041e4ee
cmp eax, edi
mov dword [esi], eax
jne 0x416b1c
lea ecx, [esp + 0xe0]
test ecx, ecx
je 0x416b1c
push 0x8007000e
call fcn.0041e633
jmp 0x416b1c
xor esi, esi
cmp esi, edi
mov dword [esp + 0x5fc], 0xffffffff
jne 0x416bb3
push 0x8007000e
call fcn.0041e633
xor eax, eax
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [esp + 0x4c], eax
test esi, esi
je 0x416b64
lea edx, [esi + 8]
push edx
call ebp
test eax, eax
jne 0x416b64
push ebx
mov ecx, esi
call fcn.00406910
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
test esi, esi
mov dword [esp + 0x5fc], ebx
je 0x416bb7
lea eax, [esp + 0x1e4]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], ebx
call fcn.0041e4ee
test eax, eax
mov dword [esi], eax
jne 0x416bb9
lea ecx, [esp + 0x1e4]
test ecx, ecx
je 0x416bb9
push 0x8007000e
call fcn.0041e633
jmp 0x416bb9
mov eax, dword [esi]
jmp 0x416b3b
xor esi, esi
test esi, esi
mov dword [esp + 0x5fc], 0xffffffff
jne 0x416d9c
push 0x8007000e
call fcn.0041e633
xor eax, eax
push eax
call edi
test esi, esi
mov dword [esp + 0x50], eax
je 0x416bfd
lea edx, [esi + 8]
push edx
call ebp
test eax, eax
jne 0x416bfd
mov ecx, esi
call fcn.00406980
push esi
call fcn.0041e706
add esp, 4
lea eax, [esp + 0xe0]
push eax
call fcn.00417810
lea ecx, [esp + 0xe4]
mov dword [esp + 0x4c], eax
push ecx
call fcn.00417830
add esp, 8
lea edx, [esp + 0x44]
mov dword [esp + 0x44], eax
mov byte [esp + 0x54], 0
push 0
push ebx
mov ebx, dword [esp + 0x48]
push edx
mov ecx, ebx
call fcn.004128d0
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, eax
mov eax, dword [esp + 0x4c]
push eax
call edi
mov ecx, dword [esp + 0x50]
push ecx
call edi
push 0
push 0
push 0
push 0
lea edx, [esp + 0x78]
push 0
lea eax, [esp + 0x2fc]
push edx
push eax
mov ecx, esi
call fcn.0040ef70
mov eax, dword [esp + 0x20]
test eax, eax
je 0x416c8e
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xd8]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.00415a30
mov eax, dword [esp + 0x24]
test eax, eax
je 0x416cae
mov ecx, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0xc8]
push eax
push ecx
mov ecx, ebx
call fcn.004159d0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x416cce
mov edx, dword [esp + 0xc4]
push eax
mov eax, dword [esp + 0xdc]
push edx
push eax
mov ecx, ebx
call fcn.00415a00
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x416cee
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xd8]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.00415a60
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x416cfe
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x416d1b
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.00415a90
mov ecx, dword [esp + 0x604]
push str.CatPathIDList
call fcn.0041c830
mov esi, eax
test esi, esi
je 0x416ee5
mov al, byte [0x426fec]
mov ecx, 0x40
mov byte [esp + 0x4f0], al
xor eax, eax
lea edi, [esp + 0x4f1]
lea edx, [esp + 0x1e4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x2e8]
stosb byte es:[edi], al
push ecx
push edx
lea eax, [esp + 0x4f8]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov ecx, esi
call fcn.0041ca70
mov esi, eax
mov ecx, dword [esi]
mov dword [esp + 0x28], ecx
mov dl, byte [esi + 4]
mov byte [esp + 0x2c], dl
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x416da3
xor eax, eax
jmp 0x416dab
mov eax, dword [esi]
jmp 0x416bd8
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
test eax, eax
jge 0x416db1
xor eax, eax
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x30], eax
mov ecx, dword [esi + 0xc]
mov esi, dword [esi + 8]
push eax
push ecx
push esi
lea ecx, [esp + 0x38]
call fcn.004172a0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x5fc], 2
test ebp, ebp
mov dword [esp + 0x28], 0
je 0x416edc
sub eax, ebp
test eax, 0xfffffffc
je 0x416edc
mov edi, dword [ebp]
test edi, edi
je 0x416edc
mov eax, dword [edi + 0x20]
mov esi, str.CatPathID
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x416e3e
test cl, cl
je 0x416e3a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x416e3e
add eax, 2
add esi, 2
test cl, cl
jne 0x416e1a
xor eax, eax
jmp 0x416e43
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x416eb6
mov eax, dword [edi + 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov esi, dword [ebx + 0x55c]
add esp, 4
xor ecx, ecx
test esi, esi
jle 0x416eb2
mov edi, esi
cmp ecx, edi
jge 0x416e75
test ecx, ecx
jl 0x416e75
mov edx, dword [ebx + 0x558]
mov edx, dword [edx + ecx*4]
jmp 0x416e77
xor edx, edx
cmp dword [edx], eax
je 0x416e82
inc ecx
cmp ecx, esi
jl 0x416e62
jmp 0x416eb2
cmp ecx, dword [ebx + 0x55c]
jge 0x416e99
test ecx, ecx
jl 0x416e99
mov eax, dword [ebx + 0x558]
mov ecx, dword [eax + ecx*4]
jmp 0x416e9b
xor ecx, ecx
mov eax, dword [ecx + 4]
lea edx, [esp + 0x4f0]
push edx
push eax
mov ecx, 0x426838
call dword [sym.imp.ExtDB.dll_public:_int___thiscall_CExtendedDB::CategoryNodeAddFile_long_int__char__]
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
inc eax
test ebp, ebp
mov dword [esp + 0x28], eax
je 0x416edc
mov ecx, dword [esp + 0x34]
sub ecx, ebp
sar ecx, 2
cmp eax, ecx
jae 0x416edc
mov edi, dword [ebp + eax*4]
test edi, edi
jne 0x416e12
push ebp
call fcn.0041e706
add esp, 4
mov ecx, dword [esp + 0x5f4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5f0
ret 8